Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [BUG]builtin echo error doing arguments parsing




On 24 February 2018 08:20:40 GMT+00:00, Stephane Chazelas <stephane.chazelas@xxxxxxxxx> wrote:
>2018-02-22 19:34:23 +0000, Peter Stephenson:
>> On Thu, 22 Feb 2018 20:00:58 +0100
>> Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>> > I didn't try the patch but currently echo
>> > -- just outputs --, only - terminates options for echo.
>> 
>> Yes, the -- behaviour appears to be general behaviour, in fact,
>> so not something that should be changed.  So indeed it's hard to
>> do this at the moment in a shell script without some kind of kludge
>> for zsh.  "disable echo" and use /bin/echo might be the best bet.
>> 
>> However, I'm not really sure if that makes it less or actually more
>> useful to align with other shells (with POSIXBUILTINS) from now on...
>> it's not obvious perpetuating the need for a kludge for ever more
>> is the best bet.
>[...]
>
>IMO, the best thing to do here is to do nothing. Leave it as it
>is.

OK, this all sounds rational.

Perhaps the difference could be flagged up better in the do.

Thanks
pws



Messages sorted by: Reverse Date, Date, Thread, Author