You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered the same issue, but I'm not sure if it should return 0 when jobs are found. It makes more sense how it is now with it returning 0 if there are jobs to report on, e.g. jobs --pid.
maxnordlund
added a commit
to maxnordlund/fish-shell
that referenced
this issue
Nov 25, 2015
While trying to write a simple
wait
command, I discovered thatjobs
behaves differently in a redirection or pipeline:This makes perfect sense to me- many shell utilities have this behavior. However, jobs ALSO changes the return code if it is used in a pipeline:
This means that the following simple
wait
implementation doesn't work:jobs
should be changed to behave likecount
,set -q
, etc. to return an error code if 0 jobs were found.The text was updated successfully, but these errors were encountered: