summary refs log tree commit diff
path: root/src/input.c
diff options
context:
space:
mode:
authorStephen Kitt <steve@sk2.org>2016-06-06 22:45:27 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2016-09-02 22:10:56 +0800
commit203e8395faa9135956e3b2a2b749b6dd96a7e988 (patch)
tree9daef748990b61965d99ff9fad443a2f667b80b6 /src/input.c
parenttrap: Implement POSIX.1-2008 trap reset behaviour (diff)
downloaddash-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 'src/input.c')
0 files changed, 0 insertions, 0 deletions