Minor correction: either one of -e and -m would work, but in most non-interactive cases, -m is what you want.
I agree that it makes sense to prompt the user for a repeat only if [[ -t 0 ]], but then it raises the question of bug-for-bug backwards compatibility (i.e. if existing scripts in the wild have come to expect the second prompt). So, in the patch, maybe just issue a warning when [[ ! -t 0 ]] but proceed as usual.
_______________________________________________ Password-Store mailing list [email protected] https://lists.zx2c4.com/mailman/listinfo/password-store
