bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #52558] find does not print symlink object in case of follow symbol


From: Ruvim
Subject: [bug #52558] find does not print symlink object in case of follow symbolic links
Date: Thu, 30 Nov 2017 09:48:34 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0

Follow-up Comment #1, bug #52558 (project findutils):

Perhaps in case of -follow option (and without -L) the consistent way should
be:
<pre>find . -type l -printf '%p -- %l\n' -follow</pre>
I.e. -type in place of -xtype  (for the moment it doesn't work).

Because the only options after -follow should consider the object of symlink,
but all the options before -follow should consider the symlink itself.

Citation from the manual: 

1. "any symbolic links appearing after -follow on the command line will be
dereferenced, and those before it will not"

2. "Similarly, the -type predicate will always match against the type of the
file that a symbolic link points to rather than the link itself."

So, -type before -follow should match against type of the file itself.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52558>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]