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 15:30:18 +0100

On Tue, 27 Dec 2016 15:26:09 +0100
Mattias Andrée <maandree_AT_kth.se> wrote:

Hey Mattias,

> POSIX explicitly states that echo(1) shall treat “--”
> as a string operand and not as a delimiter. My guess
> is that this is for historical reason, much like the
> existence of echo(1) itself.

ah now I remember, thanks. You know, sbase takes the liberty of moving
away from Posix where consistency is a concern. In this case I think
our result from a long debate was to say: Well, we just treat "--" as a
normal string for tools that do not accept any flags.

For instance, if echo does not interpret --, why doesn't printf also
follow echo in this behaviour?

Cheers

Laslo

-- 
Laslo Hunhold <dev_AT_frign.de>
Received on Tue Dec 27 2016 - 15:30:18 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 27 2016 - 15:36:20 CET