>> # purge - really remove a file!
>>>
>>> for i
>>> do [ -f $i ] && > $i
>>> done
>>> exec rm ${1+"$@"}
>>     #!/bin/sh
>>     tee ${1+"$@"} < /dev/null
>>     exec rm ${1+"$@"}
> 
> Why-oh-why are vile constructs like ${1+"$@"} still being used?  This
> isn't 1985 any more.  In any modern shell that you're likely to come
> across[1], plain "$@" will work just fine.
> 
> -Dom, hating the "must work in 7th Edition" line of shell scripters.

You hate them until your code needs to work in medieval environments.

> [1] Don't get started on all that tcsh shite again...
> 

Reply via email to