Re: Possibly wrong handling of $_?

2014-12-25 Thread Jilles Tjoelker
On Wed, Dec 24, 2014 at 12:33:32AM +0100, Vadim Zeitlin wrote: On Wed, 24 Dec 2014 00:21:09 +0100 Harald van Dijk har...@gigawatt.nl wrote: HvD On 23/12/2014 23:34, Vadim Zeitlin wrote: HvDHello, HvD HvDI'm not exactly sure if this is a bug because I didn't find any HvD

Re: Possibly wrong handling of $_?

2014-12-25 Thread Harald van Dijk
On 25/12/2014 15:32, Jilles Tjoelker wrote: On Wed, Dec 24, 2014 at 12:33:32AM +0100, Vadim Zeitlin wrote: On Wed, 24 Dec 2014 00:21:09 +0100 Harald van Dijk har...@gigawatt.nl wrote: HvD On 23/12/2014 23:34, Vadim Zeitlin wrote: HvDHello, HvD HvDI'm not exactly sure if this is a bug

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

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 $_'

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

2014-12-23 Thread Vadim Zeitlin
On Wed, 24 Dec 2014 00:21:09 +0100 Harald van Dijk har...@gigawatt.nl wrote: HvD On 23/12/2014 23:34, Vadim Zeitlin wrote: HvDHello, HvD HvDI'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