* Peter da Silva <[email protected]> [2006-12-19 14:00]:
> On Dec 18, 2006, at 7:43 PM, A. Pagaltzis wrote:
> >    #!/bin/sh
> >    tee ${1+"$@"} < /dev/null
> >    exec rm ${1+"$@"}
> 
> That unnecessarily creates the file if it doesn't exist.

Curses. In my haste to get rid of the loop, I missed the -f.

(To be honest, I'm surprised that GNU rm doesn't have an option
for truncating files before deleting them... ehm.)

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

Reply via email to