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

Re: what can be global aliases used for?



On Fri, Feb 17, 2023, at 4:19 PM, Roman Perepelitsa wrote:
> On Fri, Feb 17, 2023 at 10:13 PM Lawrence Velázquez <larryv@xxxxxxx> wrote:
>>
>>   1) Autoconf uses ${1+"$@"} instead of "$@" to work around a bug
>>      in pre-SVR3 Bourne shells.
>
> Fascinating.
>
> This made me Google SVR3. That's System V, Release 3, right? 1987.
> Before the first release of bash and zsh.

That's right!  Absolutely ancient, but -- to be fair -- downright
modern compared to its ancestors [1].  Sensible "$@" [2]?  Functions
that don't trash the global positional parameters [3]?  Sign me up.

  [1]: https://www.in-ulm.de/~mascheck/bourne/
  [2]: https://www.in-ulm.de/~mascheck/various/bourne_args/
  [3]: https://www.in-ulm.de/~mascheck/bourne/function_parameters.html

-- 
vq




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