[Python-Dev] PEP 394 request for pronouncement (python2 symlink in *nix systems)
Charles-François Natali
cf.natali at gmail.com
Sun Feb 12 17:35:19 CET 2012
>> There actually *is* an easy way, in regular ls: look at the link count.
>> It comes out of ls -l by default, and if it's >1, there will be an
>> identical file.
>
> This doesn't tell me which file it is, which is practically useless if I
> have both python3.3 and python3.2 in that directory.
You can use 'ls -i' to print the inode, or you could use find's
'samefile' option.
But this is definitely not as straightforward as a it would be for a
symlink, and I'm also curious to know the reason behind this choice.
More information about the Python-Dev
mailing list