Hello Alex,
> Does this patch help?
This patch helps, but it sill doesn't work with gpg out of the box. I
don't know what gpg exactly does but it tries to grab the tty or
something like that. However I got it working using the following more
or less ugly construct:
.lftp/rc:
alias bookmarksplz source -e /bin/bash -c "~/.lftp/gpg.sh"
.lftp/gpg.sh:
#!/usr/bin/env bash
trap 'stty sane' 0
trap "exit 2" 1 2 3 15
while ! ( stty -echo; head -1 | gpg -d --batch --passphrase-fd 0
~/.lftp/bookmarks.gpg ); do echo AGAIN; done
Is there a environment variable or something indicating the version of
lftp. Because when I use the above mechanism with old lftp versions it
hangs my terminal. Or maybe some sort of confitional I can use to set
this alias only when a certain version of lftp is there. Of course I
could add some shell code in gpg.sh that execute another lftp to ask the
version and exits with an error if lftp is to old.
Btw the diff you send me yesterday to fix the exit status wasn't
included in my nightly cvs import. It would be nice if you could commit
that one, too.
Thomas