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

Re: [BUG]builtin echo error doing arguments parsing



On Thu, 22 Feb 2018 17:50:48 +0100
Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> On Thu, Feb 22, 2018 at 11:32 AM, Peter Stephenson
> <p.stephenson@xxxxxxxxxxx> wrote:
> > On Thu, 22 Feb 2018 09:37:11 +0000
> > Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote:
> >> On Wed, 21 Feb 2018 23:23:09 -0800
> >> wumingxwk@xxxxxxxxx wrote:
> >> > if there is only a '-' as argument,builtin echo won't print it
> >>
> >> You might have thought it should at least be turned off in some or most
> >> of the emulation modes...
> >
> > Would look something like this.  Probably a good idea if there aren't
> > subtleties?
> 
> If we change it now, people would have to add a version check in
> addition to their check for zsh to be able to echo things portably (to
> know if they should add an extra - or not).

The portable option is "--", which has worked for a long time.  Adding -
would be a zsh kludge, nothing to do with portability.

pws



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