Wrap commands cont. ';' in sh when $SHELL == zsh #690
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Continues on from #635
@idolf said at #635 (comment):
It's a bugfix.
run_in_new_terminal()
interacts poorly with zsh and tmux when told to run multiple;
-separated commands. Something (zsh?) is seeingCtrl-C
(e.g. when telling a process inside gdb to break) and tearing down tmux panes as soon as the tmux pane is resized.I'm not sure if it's a zsh or tmux bug, or if it's just one of those "handling
SIGINT
is hard" things, but it annoys me a lot. Nothing like lost gdb's to wreck your day.Do you think the fix would be to wrap the command in
sh -c
as per this PR, or would you rather seerun_in_new_terminal()
not be used to run;
-separated commands as per #635 (comment)As it's a bugfix (admittedly, one that seems to annoy no one but me even though others have reproduced my findings) I've PR'd against stable. Let me know if it'd be more suitable to target dev.