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

_______________________________________________
Bash-completion-devel mailing list
Bash-completion-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-devel

Reply via email to