[Bash-completion-devel] Bug#714508: Bug#714508: Bug#714508: bash terminates on completion if "set -o errexit" (set -e) is set

Ville Skyttä ville.skytta at iki.fi
Sun Jul 7 21:00:11 UTC 2013


On 2013-07-07 14:20, Kernc wrote:
> Is setting -e only on the parent sourcing script a convention
> 'fix' for this case?

I suppose that's the usual one, yes. But depending on how stuff in
functions.sh is written (whether it actually relies on exiting on
error), it could perhaps make errexit behavior conditional based on
whether it is being sourced in an interactive shell or not, e.g.

    [[ $PS1 ]] || set -e



More information about the Bash-completion-devel mailing list