turn off history substitution in case it's been enabled (2), fixes #583

dash considers "set +H" is a syntax error and doesn't even evaluate the " || true" part
the workaround consists in trying "set +H" in a subshell first
This commit is contained in:
Gregory Pakosz 2022-08-01 17:14:21 +02:00
parent 68a909d4ca
commit b620a4f0fb
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
#
# unset GREP_OPTIONS
# export LC_NUMERIC=C
# set +H 2>/dev/null || true
# (set +H 2>/dev/null) && set +H || true
#
# if ! printf '' | sed -E 's///' 2>/dev/null; then
# if printf '' | sed -r 's///' 2>/dev/null; then