diff --git a/shell-completion/parse-commands.sh b/shell-completion/parse-commands.sh index 1ced05a77..9274747ea 100755 --- a/shell-completion/parse-commands.sh +++ b/shell-completion/parse-commands.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Parse hledger's help and output all commands and command aliases in # parenthesis. Do not output single letter command aliases, it's not useful. -set -euo pipefail +set -uo pipefail declare commands_help commands_help=$(hledger) diff --git a/shell-completion/parse-options.sh b/shell-completion/parse-options.sh index 7d7636906..80e0f6953 100755 --- a/shell-completion/parse-options.sh +++ b/shell-completion/parse-options.sh @@ -2,7 +2,7 @@ # Parse hledger's help and output long options. Do not propose single letter # completions. Options requiring an argument make that explicit by appending the # equal sign (=) -set -euo pipefail +set -uo pipefail declare subcommand=${1:-} declare hledgerArgs=(--help)