Bug#781366: bash: flaws in Debian's default for (VI|EMACS|FC|POSIX_FC)_EDIT_COMMAND

2015-03-28 Thread Christoph Anton Mitterer
I just noted that I forgot another level of quoting that would be needed for those rare cases of users having awkward characters in their path. Also I've added { …; } around the first version (the 2nd already has (… ), yes the different forms are on purpose) and a 2 /dev/null to not clutter up

Bug#781366: bash: flaws in Debian's default for (VI|EMACS|FC|POSIX_FC)_EDIT_COMMAND

2015-03-28 Thread Christoph Anton Mitterer
Package: bash Version: 4.3-12 Severity: normal Tags: patch Hi. Currently Debian sets something like the following for VI_EDIT_COMMAND, EMACS_EDIT_COMMAND, FC_EDIT_COMMAND and POSIX_FC_EDIT_COMMAND: ${FCEDIT:-${EDITOR:-$(command -v editor || echo vi)}} While this is nice it has several flaws: