New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-e on symlink doesn't always succeed? #376
Comments
From @vlbrownTry this little script: #!/usr/bin/perl -rw-rw-r-- 1 vlb noodle 0 Aug 12 17:16 ./foo I should see When I use When I try to test a path, such as If -l returns success, then the file (a link) must also exist; Perl Info
|
From @mjdominus
The bug is in you, not in Perl. Try cat tmp/foolink and your OS will tell you the same thing: plover% ls -l tmp/* That is because tmp/foolink here refers to the nonexistent file
-e tests the existence of the *file that is linked to*, not the |
From @vanstynIn <199908130018.RAA08993@cfcl.com>, Vicki Brown writes: That should be 'tmp/foolink -> foo'. The symlink works relative to Note that you can check for the existence of the symlink itself with: Hugo |
From [Unknown Contact. See original ticket]Vicki Brown <vlb@cfcl.com> writes:
This is actually useful for finding broken links. -- |
From @vlbrownAt 20:55 -0400 08/12/1999, Mark-Jason Dominus wrote:
Ahhhh. A subtlety not clear from the docs. |
Migrated from rt.perl.org#1211 (status was 'resolved')
Searchable as RT1211$
The text was updated successfully, but these errors were encountered: