[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#908132: reportbug: command line option parsing violates user expectations



Package: schroot
Version: 1.6.10-5
Severity: normal

tglase@tglase:~ $ schroot -prc vncsess dpkg -l mksh
E: Only one action may be specified
I: Run “schroot --help” to list usage example and all available options

Apparently, there’s a workaround…

tglase@tglase:~ $ schroot -prc vncsess -- dpkg -l mksh
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                   Version          Architecture     Description
+++-======================-================-================-=================================================
ii  mksh                   56c+wtf1         amd64            MirBSD Korn Shell

… but POSIXly, and in related tools…

tglase@tglase:~ $ sudo chroot --userspec=$(id -u):$(id -g) /home/AMD64 dpkg -l mksh
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                   Version          Architecture     Description
+++-======================-================-================-=================================================
ii  mksh                   56c+wtf1         amd64            MirBSD Korn Shell

… a non-option argument terminates argument processing.

-- System Information:
Debian Release: buster/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'buildd-unstable'), (500, 'unstable'), (100, 'experimental')
Architecture: x32 (x86_64)
Foreign Architectures: i386, amd64

Kernel: Linux 4.17.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)

Versions of packages schroot depends on:
ii  libboost-filesystem1.62.0       1.62.0+dfsg-8
ii  libboost-iostreams1.62.0        1.62.0+dfsg-8
ii  libboost-program-options1.62.0  1.62.0+dfsg-8
ii  libboost-system1.62.0           1.62.0+dfsg-8
ii  libc6                           2.27-6
ii  libgcc1                         1:8.2.0-5
ii  libpam0g                        1.1.8-3.8
ii  libstdc++6                      8.2.0-5
ii  libuuid1                        2.32.1-0.1
ii  lsb-base                        9.20170808
ii  schroot-common                  1.6.10-5

schroot recommends no packages.

Versions of packages schroot suggests:
pn  aufs-tools | unionfs-fuse  <none>
pn  btrfs-tools                <none>
ii  debootstrap                1.0.108
ii  lvm2                       2.02.176-4.1
pn  qemu-user-static           <none>

-- Configuration Files:
/etc/schroot/schroot.conf changed:
[sid-amd64]
description=Debian sid/amd64 (unstable)
type=directory
directory=/home/AMD64
root-users=libvirt-qemu,tglase,root
command-prefix=linux64,eatmydata
setup.fstab=fstab.qemu
[lenny]
description=Debian lenny/i386
type=directory
directory=/home/KDEPIM
root-users=tglase,root
command-prefix=/bin/linux3226,eatmydata


-- no debconf information

Reply to: