I have cmd2 that should follow after cmd1 completes. I sometimes need to pause cmd1 .
When i type
$ cmd1 && cmd2
and then press Ctrl+Z (Stop) to stop cmd1 . Now cmd1 pauses, but when I resume it, it does not start cmd2 after cmd1 completes.
When i type
$ cmd1 ; cmd2
and then press Ctrl+Z (Stop) to stop cmd1 . Now cmd1 pauses, but cmd2 starts right cmd2 , and I want to start cmd2 only after cmd1 completes.
I did some research and someone suggested an elegant way in zsh , but I am wondering if there is an elegant way to do this in bash .
source share