stat(1) badly needs flag to just print name of the symlink

2008-09-16 Thread jidanni
Is it true that there is no stat(1) flag to just print the link name? All one can find is %N - Quoted file name with dereference if symbolic link $ stat -c %N s1mp3.backup `s1mp3.backup' -> `/mnt/extra10/s1mp3' meaning the user must be dragged over the coals to do $ stat -c %N s1mp3.backup |perl -F

Re: stat(1) badly needs flag to just print name of the symlink

2008-09-16 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to [EMAIL PROTECTED] on 9/16/2008 2:05 PM: > Is it true that there is no stat(1) flag to just print the link name? What's wrong with readlink(1)? - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTE

Re: stat(1) badly needs flag to just print name of the symlink

2008-09-16 Thread jidanni
EB> What's wrong with readlink(1)? OK, I will let you off the hook if you enhance the stat(1) man page to please say something like: %N Quoted file name with dereference if symbolic link For just the dereference name, see readlink(1). _