Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15394

Output of jobs wrong

From Martin Schulte <gnu@schrader-schulte.de>
Newsgroups gnu.bash.bug
Subject Output of jobs wrong
Date 2019-09-21 20:48 +0200
Message-ID <mailman.740.1569091685.2190.bug-bash@gnu.org> (permalink)
References <20190921204800.c3c911d32e3b955b7901b887@schrader-schulte.de>

Show all headers | View raw


Hello,

I'm not feeling well writing this mail because so far I've not been able
to reproduce the behaviour I describe in the following...

I was trying to understand the "[Patch] (tiny problem) bad short_doc for
% command" thread when I entered more or less the following sequence of
commands:

$ help -s %
%: job_spec [&]
$ sleep 10
^C [Interrupted with CTRL-C - maybe "exactly" after 10 seconds]
$ sleep 100 &
$ sleep 200 &
$ sleep 30 &
$ %
^C [Interrupted with CTRL-C]
$ sleep 300 &
$ jobs
[1]   Running                 sleep 10 &
[2]-  Running                 sleep 10 &
[3]+  Running                 sleep 300 &

So job 1 and job 2 listed the wrong argument. I checked this from a
second terminal with 'ps -lf' - and there were three sleep with
arguments 100, 200 and 300... 

Systeminfo:

$ uname -a
Linux martnix4 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u5 (2019-08-11)
x86_64 GNU/Linux
$ echo $BASH_VERSION
4.4.12(1)-release

Sorry, I would like to be more helpful - but maybe someone else has
noticed a similiar problem or has an idea with the sources in mind.

Best regards,

Martin

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Output of jobs wrong Martin Schulte <gnu@schrader-schulte.de> - 2019-09-21 20:48 +0200

csiph-web