Jacob Yocom-Piatt wrote:
i'm making a ksh script that dumps regular backups and encrypts them using gpg,
and am having trouble with the @ character that appears in the recipient's
email:
ADMIN="[EMAIL PROTECTED]"
...
gpg -e -r $ADMIN $ROOT/$HOST/$FN
i've tried escaping the @ with \ to no avail. i am aware that @ is involved in
regexps in ksh scripts, but i do not see how to escape a literal @.
the particular message i get when running the script is
/tmp/dobackup.WQnCtMA23614/backup[153]: [EMAIL PROTECTED]: unexpected `@'
cluesticking is appreciated. once this script is in a more thoroughly tested
form, i'll post it to [EMAIL PROTECTED]
cheers,
jake
Don't know if I get you right, but I'd try quoting the parameter
substitution, e.g.
ADMIN="[EMAIL PROTECTED]"
...
gpg -e -r "$ADMIN" "$ROOT/$HOST/$FN"
/Alexander