Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: stat weirdness?

by Abigail-II (Bishop)
on Feb 25, 2004 at 15:12 UTC ( [id://331673]=note: print w/replies, xml ) Need Help??


in reply to stat weirdness?

Is this just a quirk of perl?
No. It's not just a quirk of perl. Perl does what the 'test' utility does as well (and many shells have this baked in). I don't have the POSIX standard handy at the moment, but I expect that POSIX requires this behaviour as well.

Abigail

Replies are listed 'Best First'.
Re: Re: stat weirdness?
by antirice (Priest) on Feb 25, 2004 at 15:19 UTC

    To quote the page of the POSIX standard pertaining to stat:

    If the named file is a symbolic link, the stat() function shall continue pathname resolution using the contents of the symbolic link, and shall return information pertaining to the resulting file if the file exists.

    So the behavior that the OP is experiencing should be expected.

    antirice    
    The first rule of Perl club is - use Perl
    The
    ith rule of Perl club is - follow rule i - 1 for i > 1

Re: Re: stat weirdness?
by z3d (Scribe) on Feb 25, 2004 at 16:33 UTC
    Abigail, antirice, thank you both. Now I'm wishing there was a "remove this node thank you" button. Not sure why I never ran into this aspect before - definitely an ignorance issue on my part. I appreciate the quick responses :)



    "I have never written bad code. There are merely unanticipated features."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://331673]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-20 15:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found