Say I want to modify the latter of some concatenated command line options, is it possible without killing the first command?Specifically I have compile and run scripts executed thusly:> compile ; runThe compile is in progress (half way through two hour duration), but new information tells me I don't really want the run command to run anymore (it launches a lot of background processes I don't want to go clean up).Is there a way to accomplish this adjustment or should I just be smarter about how I string together commands in the future?
Suspend and edit previous single line commands
shell;command line;process;kill
Something likecompile && { test -f /path/to/dont_run || run; }should solve your problem. touch /path/to/dont_run would prevent run from being executed. You can make this more complicated (and more convenient) by e.g. defining a shell function cond_run_cmd which does some check like that, limited to its tty (so that you can have several in parallel) or whatever.