`--success last` does not work while `--success first` does
See original GitHub issueExpectation
Switching the order of two commands while simultaneously switching from --success last
to --success first
should not change the exit status of concurrently
Observed behaviour
--success last
does not work as expected when used together with --kill-others
Version 4.1.0
Steps to reproduce
Take two commands: sleep 5; exit 0;
and sleep 100
, and switch their order. With --success first
works correctly:
$> concurrently --kill-others --success first 'sleep 5; exit 0;' 'sleep 100'
[0] sleep 5; exit 0; exited with code 0
--> Sending SIGTERM to other processes..
[1] sleep 100 exited with code SIGTERM
$> echo $?
0
With --success last
works incorrectly (expected to get exit code 0
same as above):
$> concurrently --kill-others --success last 'sleep 100' 'sleep 5; exit 0;'
[1] sleep 5; exit 0; exited with code 0
--> Sending SIGTERM to other processes..
[0] sleep 100 exited with code SIGTERM
$> echo $?
1
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:15 (5 by maintainers)
Top Results From Across the Web
30 Powerful Success and Failure Quotes That Will Lead You ...
3. “You always pass failure on your way to success.” -Mickey Rooney. In today's competitive world, it's hard to understand that almost no...
Read more >65 Inspirational Quotes About Success at Work | Indeed.com
“You don't have to be great to start, but you have to start to be great.” — Zig Ziglar. “The first step toward...
Read more >Why Do Some People Succeed after Failing, While Others ...
A growing body of research supports the idea that failure can make you better off in the long run. Indeed, in another recent...
Read more >70 Quotes About Hard Work That'll Help You Reach Your Goals
5. "Success is no accident. It is hard work, perseverance, learning, studying, sacrifice and most of all, love of what you are doing...
Read more >10 inspirational quotes about hard work - The Predictive Index
1. "There are no secrets to success. It is the result of preparation, hard work, learning from failure." – General Colin Powell2. “ ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Implemented by #318 which has been released in v7.2.0.
Does the above help anyone? 🙂