tech-userlevel archive

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

Re: Default behaviour of 'ifconfig'



In article <20101203161141.GR1616%ojctech.com@localhost>,
David Young  <dyoung%pobox.com@localhost> wrote:

>The "?" flag is not a model of usability itself: it does not work
>consistently across shells unless you backslash-escape it.
>
>csh: {1} ifconfig -?
>ifconfig: No match.
>
>tcsh:~> ifconfig -?
>ifconfig: No match.
>
>sh$ ifconfig -?
>ifconfig: unknown option -- ?
>usage: ifconfig [-h] [-m] [-v] [-z] [-L] interface ...

You are supposed to know how globbing works in your shell. Otherwise
PEBKAC, and it is not the "?"'s fault.

csh> set nonomatch
csh> ifconfig -?
ifconfig: unknown option -- ?
usage: ifconfig [-h] [-m] [-v] [-z] [-L] interface ...
...

christos



Home | Main Index | Thread Index | Old Index