Bug 81437 - jobs command output cannot be processed further
jobs command output cannot be processed further
Status: CLOSED UPSTREAM
Product: Red Hat Linux
Classification: Retired
Component: zsh (Show other bugs)
8.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jens Petersen
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-01-09 09:57 EST by Rene Uittenbogaard
Modified: 2007-04-18 12:49 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-05-07 16:39:53 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Rene Uittenbogaard 2003-01-09 09:57:40 EST
Description of problem:

The jobs command output cannot be sent through a pipe.

$ sleep 300 &
[1] 21238
$ jobs
[1]  + running    sleep 300
$ jobs | wc 
      0       0       0


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
$ sleep 300 &
[1] 21238
$ jobs
[1]  + running    sleep 300
$ jobs | wc 
      0       0       0


Actual Results:  'jobs' seems to produce no output when reading from the pipe.

Expected Results:  the pipe reading process should receive the same output as 
is printed on the terminal when just typing 'jobs'

Additional info:
Comment 1 Rene Uittenbogaard 2003-01-09 10:00:32 EST
produced using zsh-4.0.4-8, but the bug is present in some earlier versions, 
too.
Comment 2 Jens Petersen 2003-02-10 09:01:16 EST
Still seems to be present in zsh-4.0.6.
Comment 3 Jens Petersen 2003-04-30 21:10:08 EDT
Seems to be ok with zsh-4.0.6.
Comment 4 Rene Uittenbogaard 2003-05-07 05:46:13 EDT
Still doesn't work, even with 4.0.6:

/home/rene: sleep 1000&
[1] 1221
/home/rene: jobs
[1]  + running    sleep 1000
/home/rene: jobs | wc
0       0       0
/home/rene: echo $ZSH_VERSION
4.0.6
/home/rene: rpm -q zsh 
zsh-4.0.6-5


Comment 5 Rene Uittenbogaard 2003-05-07 05:51:58 EDT
Same for 4.0.6-7:

/home/rene: jobs 
[1]  + running    sleep 1000
/home/rene: jobs | wc 
      0       0       0
/home/rene: echo $ZSH_VERSION
4.0.6
/home/rene: rpm -q zsh
zsh-4.0.6-7
      
Comment 6 Jens Petersen 2003-05-07 16:39:53 EDT
Reproduced again :)  Not sure, why I thought it was ok.

Ok, it turns out this is a known problem - see the thread starting with

http://www.zsh.org/mla/users/2002/msg00755.html

and in particular http://www.zsh.org/mla/users/2002/msg00772.html

It seems 4.1 has some workaround for this.

Note You need to log in before you can comment on or make changes to this bug.