commit | 203e8395faa9135956e3b2a2b749b6dd96a7e988 | [log] [tgz] |
---|---|---|
author | Stephen Kitt <steve@sk2.org> | Mon Jun 06 22:45:27 2016 +0800 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Sep 02 22:10:56 2016 +0800 |
tree | 9daef748990b61965d99ff9fad443a2f667b80b6 | |
parent | 551215bb2f05b6ed0a639e1a20b88906ddd7ef9b [diff] |
jobs: Handle string-based job descriptors When looking for a job using a string descriptor, e.g. fg %man the relevant loop in src/jobs.c only ever exits to the err label. With this patch, when the end condition is reached, we check whether a job was found, and if so, set things up to exit correctly via gotit. Multiple matches are already caught using the test in the match block. Signed-off-by: Stephen Kitt <steve@sk2.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>