[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problem with echoing script variable to gpg
From: |
pwaugh |
Subject: |
problem with echoing script variable to gpg |
Date: |
Thu, 18 Dec 2008 00:49:26 -0800 (PST) |
While this shell command
echo -n "net.berrysoft.dib.Game" | gpg --print-md sha1
gives me the correct response, when I try to do this in a script using ${1}:
digest = $( echo -n ${1} | gpg --print-md sha1 )
echo digest
I do not get the same value!!!! I have no clue why. Help.
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.
- problem with echoing script variable to gpg,
pwaugh <=