• Bug#1107246: /usr/bin/psselect: psselect no longer understands ranges

    From Ian Jackson@21:1/5 to All on Tue Jun 3 21:30:02 2025
    Package: psutils
    Version: 3.3.8-1
    Severity: normal
    File: /usr/bin/psselect

    Steps

    seq 1 1000 | a2ps -B -o - | psselect 2- | file -

    Expected output (observed on bookworm):

    [stdin (plain): 15 pages on 8 sheets]
    [Total: 15 pages on 8 sheets] sent to the standard output
    [2] [3] [4] [5] [6] [7] [8] Wrote 7 pages, 26879 bytes
    /dev/stdin: PostScript document text conforming DSC level 3.0

    Actual output:

    [Total: 15 pages on 8 sheets] sent to the standard output

    psselect: `2-' is not a page range
    /dev/stdin: empty

    Comment:

    I don't see how psselect's range feature could be expressed in terms
    of pstops's specs.

    This is a regression in the new psutils.


    -- System Information:
    Debian Release: trixie/sid
    APT prefers testing-debug
    APT policy: (500, 'testing-debug'), (500, 'testing')
    Architecture: amd64 (x86_64)

    Kernel: Linux 6.12.20-amd64 (SMP w/16 CPU threads; PREEMPT)
    Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash
    Init: sysvinit (via /sbin/init)
    LSM: AppArmor: enabled

    Versions of packages psutils depends on:
    ii perl 5.40.1-2
    ii python3 3.13.2-2
    ii python3-psutils 3.3.8-1

    Versions of packages psutils recommends:
    ii ghostscript 10.05.0~dfsg-1

    psutils suggests no packages.

    -- no debconf information

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)