Making zsh jobs -p behave as in bash
Clash Royale CLAN TAG #URR8PPP 1 Is there a way to make jobs -p in zsh behave as in bash, ie. give only a number, such that one can do kill $(jobs -p) ? zsh jobs share | improve this question edited Jan 8 at 23:45 Toothrot asked Jan 8 at 23:12 Toothrot Toothrot 828 5 21 jobs -p gives pgids, not pids. If you want pids, look at the $jobstates special associative array. – Stéphane Chazelas Jan 8 at 23:28 @StéphaneChazelas, see edit. – Toothrot Jan 8 at 23:45 add a comment | 1 Is there a way to make jobs -p in zsh behave as in bash, ie. give only a number, such that one can do kill $(jobs -p) ? zsh jobs share | improve this question edited Jan 8 at 23:45 Toothrot asked Jan 8 at 23:12 Toothrot Toothrot 828 5 21 jobs -p gives pgids, not pids. If you want pids, look at the $jobstat...