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

Re: cd -s symlink hangs (sometimes?)



Mikael Magnusson wrote:
> I wasn't able to make it happen, but is it possible that under some
> circumstance, a command of the form
> /unimportant/dir% ls **/*; rm -rf *
> could now remove everything in my home directory?

It will now abort the current set of commands if restoring the directory
fails and in any case ** doesn't follow symlinks (unlike ***).  In theory.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



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