Re: [hackers] [sbase][PATCH] basename, dirname, printf: recognise -- and fail if options are used.

From: Laslo Hunhold <dev_AT_frign.de>
Date: Tue, 27 Dec 2016 11:26:07 +0100

On Fri, 25 Mar 2016 21:31:37 +0100
Mattias Andrée <maandree_AT_kth.se> wrote:

Hey Mattias,

> basename.c | 5 ++++-
> dirname.c | 6 +++++-
> printf.c | 12 ++++++++----
> 3 files changed, 17 insertions(+), 6 deletions(-)

I do not support this patch, as "--" only makes sense for tools that
actually take flags.
I pity that GNU basename(1), dirname(1) and printf(1) take flags,
however, see great value in being able to do

        $ printf --

and get what you asked for instead of some error message

        printf: usage: printf [-v var] format [arguments]

Cheers

Laslo

-- 
Laslo Hunhold <dev_AT_frign.de>
Received on Tue Dec 27 2016 - 11:26:07 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 27 2016 - 15:13:55 CET