Re[2]: Possibly wrong handling of $_?

2014-12-23 Thread Vadim Zeitlin
On Wed, 24 Dec 2014 00:21:09 +0100 Harald van Dijk wrote: HvD> On 23/12/2014 23:34, Vadim Zeitlin wrote: HvD> > Hello, HvD> > HvD> > I'm not exactly sure if this is a bug because I didn't find any HvD> > specification about how is this supposed to behave (to my surprise it HvD> > turned out t

Re: Possibly wrong handling of $_?

2014-12-23 Thread Harald van Dijk
On 23/12/2014 23:34, Vadim Zeitlin wrote: Hello, I'm not exactly sure if this is a bug because I didn't find any specification about how is this supposed to behave (to my surprise it turned out that $_ was not in POSIX), but please consider this: % zsh -c 'echo -n foo && echo $_'

Possibly wrong handling of $_?

2014-12-23 Thread Vadim Zeitlin
Hello, I'm not exactly sure if this is a bug because I didn't find any specification about how is this supposed to behave (to my surprise it turned out that $_ was not in POSIX), but please consider this: % zsh -c 'echo -n foo && echo $_' foofoo % bash -c 'echo -n foo &&