Re: [PATCH 01/16] whereis: tell when mandatory option is missing

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

 



On Sun, Feb 22, 2015, at 15:41, Sami Kerola wrote:
>  misc-utils/whereis.c | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)

But whereis works fine with a missing -f when some
other option is given after -B or -M or -S.  Example:

$ whereis  -B /crap  -bm  when where whereis
when:
where:
whereis: /usr/share/man/man1/whereis.1.gz

To break that with a complaint about a missing -f...
Better not.

But when there's no intervening option, then it's good
to report a missing -f -- at least, when there is more
than one argument after the -B or -M or -S.

> +	if (opt_f_missing)
> +		errx(EXIT_FAILURE, _("option -f missing"));

s/missing/is missing/

Benno

-- 
http://www.fastmail.com - Send your email first class

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux