Jean-Sebastien --

...and then Jean-Sebastien Morisset said...
% I don't know about you guys, but I got tired of PGP's (version 6.5.8)
% copyright message. Here's a little script I wrote called
% 'pgp-no-copyright':

Cool; thanks.  Sec Zehl had written a patch back in the 0.95 days which
condensed the PGP output and was very nice, but I've had to abandon it
because mutt has changed too much.  Anyone feel like taking it up again?

${1+"$@"}

% 
% ---BEGIN---
% #!/bin/sh
...
% pgp $* 2>$PGP_ERR 1>$PGP_OUT

BTW, you might want to modify your script to protect any arguments with
embedded spaces.  Change the line above to

  pgp ${1+"$@"} 2>$PGP_ERR 1>$PGP_OUT

and you're golden.  [BTW, I haven't *yet* found this in any shell
documentation since I saw it in a shell programming tip; can anyone
provide me a pointer for further research?]


:-D
-- 
David T-G                      * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

PGP signature

Reply via email to