Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Detecting whether two pathes refer to the same file

by ambrus (Abbot)
on Sep 10, 2010 at 21:12 UTC ( [id://859699]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ cat samefile.c
    /* samefile -- decides whether two files given as arguments are the sa
    +me.
    ...
    $ ./samefile /usr/local/libexec/git-core/git-{diff,commit}; echo $?
    0
    $
    
  2. or download this
    $ test /usr/local/libexec/git-core/git-diff -ef /usr/local/libexec/git
    +-core/git-pull; echo $?
    1
    $ test /usr/local/libexec/git-core/git-diff -ef /usr/local/libexec/git
    +-core/git-commit; echo $?
    0
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (1)
As of 2024-04-25 04:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found