diff options
author | Stephen Kitt <steve@sk2.org> | 2016-06-06 22:45:27 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-09-02 22:10:56 +0800 |
commit | 203e8395faa9135956e3b2a2b749b6dd96a7e988 (patch) | |
tree | 9daef748990b61965d99ff9fad443a2f667b80b6 /src/shell.h | |
parent | trap: Implement POSIX.1-2008 trap reset behaviour (diff) | |
download | dash-203e8395faa9135956e3b2a2b749b6dd96a7e988.tar.gz dash-203e8395faa9135956e3b2a2b749b6dd96a7e988.zip |
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions