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

Re: ** bug?



According to Hariharan Dhandapani:
> Thanks for all your responses, "***" does work and does what i want it
> to do, however what is the rationale behind differenitating symbolic
> links, why doesn't "**" itself follow symbolic links too ...

Following symlinks is a dangerous policy.  You'll note that "find"
and similar commands usually don't follow symlinks unless they're told
to.  Consider:

  $ mkdir infinite
  $ cd infinite
  $ ln -s .. loop

Now if you follow symlinks, you have infinite/loop/infinite/loop/...
-- 
               Chip Salzenberg, aka <chs@xxxxxxxxx>
        "Hey, it's the Miss Alternate Universe Pageant!"
          -- Crow T. Robot, MST3K: "Stranded In Space"



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