LWN.net Logo

Shortening the rope

Shortening the rope

Posted Apr 6, 2009 13:28 UTC (Mon) by hppnq (guest, #14462)
In reply to: Shortening the rope by fb
Parent article: Shortening the rope

That sounds like zsh's own version of rm(1), in the fine Unix tradition that each shell brings its own rope.


(Log in to post comments)

Shortening the rope

Posted Apr 10, 2009 13:01 UTC (Fri) by TRS-80 (subscriber, #1804) [Link]

It's /usr/bin/rm, the magic is in zsh's globbing which detects rm and * in the same command.

Shortening the rope

Posted Apr 14, 2009 11:58 UTC (Tue) by hppnq (guest, #14462) [Link]

Ah, thanks. What a horrible feature. A shining example of what Eric Allman -- no stranger to, err, dodgy stuff -- must have meant with his somewhat leaky screwdriver. ;-)

(There actually is a zsh module that adds an alternative rm, but it has nothing to do with this perverse behaviour.)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds