You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove saving prior trap in PROMPT_COMMAND with subshell (#60)
- This was causing crashes in cases where users were doing:
export PROMPT_COMMAND="history -a; $PROMPT_COMMAND;"
- Original description from contributor:
$(trap -p DEBUG)" is launching a sub-shell, bash itself. So when people do
"export PROMPT_COMMAND="history -a; $PROMPT_COMMAND;"", they export form the
parent shell to subsequent sub-shells. And that creates the infinite loop,
that eventually segfault bash.
0 commit comments