zsh-workers
 help / color / mirror / code / Atom feed
From: "Lawrence Velázquez" <larryv@zsh.org>
To: "Roman Perepelitsa" <roman.perepelitsa@gmail.com>
Cc: zsh-workers@zsh.org
Subject: Re: what can be global aliases used for?
Date: Fri, 17 Feb 2023 18:27:50 -0500	[thread overview]
Message-ID: <44d5e9a8-fec2-457d-9259-d06b603fcbad@app.fastmail.com> (raw)
In-Reply-To: <CAN=4vMrmBKa0CmcM_=6dbdx_dS_3KFZgmp=zCSKA8=67Ks+uRA@mail.gmail.com>

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@zsh.org> 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


      reply	other threads:[~2023-02-17 23:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAKc7PVA0X1786JP7g69aDP8eL+1oAZpipVC-4BNm1KV=OPxe7A@mail.gmail.com>
2023-02-17 14:54 ` Sebastian Gniazdowski
2023-02-17 17:15   ` Roman Perepelitsa
2023-02-17 19:10   ` Bart Schaefer
2023-02-17 21:11   ` Lawrence Velázquez
2023-02-17 21:19     ` Roman Perepelitsa
2023-02-17 23:27       ` Lawrence Velázquez [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44d5e9a8-fec2-457d-9259-d06b603fcbad@app.fastmail.com \
    --to=larryv@zsh.org \
    --cc=roman.perepelitsa@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).