It would be nice if I could use something akin to e.g. gpg.$FINGERPRINT.conf to
override options in gpg.conf when I am using the key identified by $FINGERPRINT.
Description
Description
Event Timeline
Comment Actions
Nope. Featurism without clear semantics. Use something like this
#!/bin/sh
fpr="$1"
shift
gpg --options myconf/gpg.$fpr.conf "$@"
Comment Actions
also sprach Werner Koch via BTS <gnupg@bugs.g10code.com> [2009.05.06.1111 +0200]:
Nope. Featurism without clear semantics. Use something like this
#!/bin/sh
fpr="$1"
shift
gpg --options myconf/gpg.$fpr.conf "$@"
That doesn't work as it introduces "$1" and will thus be
incompatible with existing scripts that call gpg.
Maybe I can help clear up the semantics? I am not sure what you are
missing...
Comment Actions
What you want to do is to make the configuration depend on the input data: The
keys are input data. This is not acceptable.
Regarding the code snippet: Of course you should not use the name "gpg" for
such a script.