Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: (-) doesn't make (e) working on the files which symbolic links point to ?



On Oct 24, 10:14am, Han Pingtian wrote:
} 
} Looks like the qualifer "(-)" doesn't make "(e)" works on files pointed
} by symblic

The only thing that (-) controls is whether the file attributes are read
by lstat() or stat().  It does not cause a readlink(); note that even in
the absence of (e), the names returned by *(@-) are the names of the links
and not of the files linked-to.

You want (:A) like so:

    ls -l /dev/disk/by-id/*(:Ae'.[[ $REPLY = *sda* ]].')



Messages sorted by: Reverse Date, Date, Thread, Author