Alan Curry wrote: > Jim Meyering writes: >> Alan Curry wrote: >> >> > rm -rf $PWD, meaning basically the same thing as rm -rf ., works, and >> > leaves >> >> If you use that, in general you would want to add quotes, >> in case there are spaces or other shell meta-characters: >> >> rm -rf "$PWD" > > Well, when I do it I'm in zsh which has fixed that particular Bourne shell > design error.
I use zsh on the command line, too (Go zsh! :-), but few have the luxury of being able to target zsh as their sole bourne-like shell interpreter.