Re: problem with echoing script variable to gpg

2008-12-18 Thread Patrick Waugh
Thanks. Amazingly, I got it figured out shortly after, and works like a charm now. Patrick On Thu, Dec 18, 2008 at 1:57 PM, Eric Blake wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > According to pwaugh on 12/18/2008 1:49 AM: >> digest = $( echo -n ${1} | gpg --print-md sha1 ) >> e

Re: problem with echoing script variable to gpg

2008-12-18 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to pwaugh on 12/18/2008 1:49 AM: > digest = $( echo -n ${1} | gpg --print-md sha1 ) > echo digest > > I do not get the same value I have no clue why. Help. Too much whitespace, and a misunderstanding about how shell variables work. Y

problem with echoing script variable to gpg

2008-12-18 Thread pwaugh
. Patrick -- View this message in context: http://www.nabble.com/problem-with-echoing-script-variable-to-gpg-tp21068924p21068924.html Sent from the Gnu - Bash mailing list archive at Nabble.com.