Package: net-tools
Version: 1.60-10
Severity: normal

# ip l s dev dummy0 up
# ip l s dummy0 name --help
# ip l l --help
6: --help: <BROADCAST,NOARP> mtu 1500 qdisc noqueue 
    link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
# ifconfig --help 2>&1 | head -n3
Usage:
  ifconfig [-a] [-i] [-v] [-s] <interface> [[<AF>] <address>]
  [add <address>[/<prefixlen>]]
[...]

-- Also note that well-behaving programs list the --help output on
stdout, NOT on stderr!

# ifconfig -- --help
ifconfig: option `--' not recognised.
ifconfig: `--help' gives usage information.

The problem is more severe then it seems at the first glance: At the
very moment, I'm trying to write a portable script that will check for a
device of a given name being present on a system.  The admin could have
set the device name to virtually anything, using ip(8), but ip isn't
present on most systems, and in fact it could have been removed after
the device name change, even on this system.

Note iwconfig (from the wireless-tools package) has exactly the same
problem (which makes things worse).

Cheers,
Jan.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (700, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.28-jan
Locale: LANG=C, LC_CTYPE=cs_CZ.ISO-8859-2 (charmap=ISO-8859-2)

Versions of packages net-tools depends on:
ii  libc6                       2.3.2.ds1-18 GNU C Library: Shared libraries an

-- no debconf information

-- 
 )^o-o^|    jabber: [EMAIL PROTECTED]
 | .v  K    e-mail: jjminar FastMail FM
 `  - .'     phone: +44(0)7981 738 696
  \ __/Jan     icq: 345 355 493
 __|o|__Minář  irc: [EMAIL PROTECTED]

Attachment: pgpxjPC1o6vyv.pgp
Description: PGP signature

Reply via email to