hello,
@ http://tiswww.tis.case.edu/~chet/bash/FAQ there are comments ACKing
ksh's support for "associative arrays" -- and BASH's current lack of
it -- but no announcement of plans/predictions/promises for BASH
support.
lot's of sites proclaim that there "will be" future support ... but
folks @
i'm attempting to write a bash script to automate a sublaunched apps'
interactive dialog.
fwiw, the app in question is gpg, in its key-revocation mode.
the 1st, simple task is to auto-respond to its 1st interactive
question with a 'Yes'; subsequent questions -- there are several --
will require
i wasn't even close! but, this works:
-
#!/usr/local/bin/bash
$GPG="sudo -u gpguser /usr/local/bin/gpg
$NAME="revoke.txt"
$ADDR="[EMAIL PROTECTED]"
VAR=$(expect -c "
spawn $GPG --output $NAME --gen-revoke $ADDR
set timeout -1
stty -