1
0
Fork 0
mirror of synced 2024-12-21 14:31:05 -05:00

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

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