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

From: Laslo Hunhold <>
Date: Tue, 27 Dec 2016 15:30:18 +0100

On Tue, 27 Dec 2016 15:26:09 +0100
Mattias Andrée <> 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?



Laslo Hunhold <>
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