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 && echo $_' foofoo % dash -c 'echo -n foo && echo $_' foo/usr/bin/dash I've tested several different versions of zsh (4 and 5) and bash (3 and 4) and dash 0.5.5 and 0.5.7 from Debian and they all produced the results as above. Shouldn't dash follow the other shells here? VZ
Attachment:
pgpv7I0AhjRw5.pgp
Description: PGP signature