Bug#346162: zsh: jobs -p is not POSIX-compliant

2024-01-10 Thread Aaron Franke
I see that this bug report hasn't received activity since 2006. I am still 
experiencing this issue in 2024 with zsh 5.9, where jobs -p is outputting more 
than just the PIDs.
I think the most optimal solution is for zsh to update the output of jobs -p to 
be POSIX-compliant and match bash.
However, if the zsh developers do not want to break compatibility, another 
option is to add a new flag that has the correct behavior. For example, a 
capitalized version, -P.

Thanks,Aaron Franke


Bug#346162: zsh: jobs -p is not POSIX-compliant

2006-01-05 Thread Vincent Lefevre
Package: zsh
Version: 4.3.0-dev-2-1
Severity: normal

POSIX says that with jobs -p, only the PID is output, whereas zsh
outputs full information.

See http://www.opengroup.org/onlinepubs/009695399/utilities/jobs.html

STDOUT

If the -p option is specified, the output shall consist of one
line for each process ID:

%d\n, process ID

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14.4-20051215
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)

Versions of packages zsh depends on:
ii  debconf [debconf-2.0] 1.4.67 Debian configuration management sy
ii  libc6 2.3.5-11   GNU C Library: Shared libraries an
ii  libncurses5   5.5-1  Shared libraries for terminal hand

Versions of packages zsh recommends:
ii  libcap1   1:1.10-14  support for getting/setting POSIX.
ii  libpcre3  6.4-1.1Perl 5 Compatible Regular Expressi

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]