[Pkg-kbd-devel] Bug#642324: kbd: openvt exits with 0 if invalid option given.

David Kaasen davidk at aptomar.com
Wed Sep 21 15:17:38 UTC 2011


Package: kbd
Version: 1.15.3-6
Severity: normal

Dear Maintainer,

When running openvt with an invalid option, it prints an error
message, but quits with exit code 0, indicating success.

This seems wrong to me. I would expect en error exit code, so that
e.g. shell scripts could handle the error.

It behaved correctly in earlier versions (at least in Debian 5.0).

Example:

[davidk at rigel ~]$ openvt -a ; echo Exit code was: $?
openvt: invalid option -- 'a'
Usage: openvt [OPTIONS] -- command

This utility help you to start a program on a new virtual terminal (VT).

Options:
   -c, --console=NUM   use the given VT number;
   -f, --force         force opening a VT without checking;
   -l, --login         make the command a login shell;
   -u, --user          figure out the owner of the current VT;
   -s, --switch        switch to the new VT;
   -w, --wait          wait for command to complete;
   -v, --verbose       print a message for each action;
   -V, --version       print program version and exit;
   -h, --help          output a brief help message.

Exit code was: 0
[davidk at rigel ~]$

With best regards from
David Kaasen.

-- System Information:
Debian Release: wheezy/sid
   APT prefers testing
   APT policy: (900, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages kbd depends on:
ii  console-setup  1.70 
ii  libc6          2.13-18
ii  lsb-base       3.2-28

Versions of packages kbd recommends:
ii  console-setup  1.70

kbd suggests no packages.

-- no debconf information





More information about the Pkg-kbd-devel mailing list