zsh-workers
 help / color / mirror / code / Atom feed
From: Ross Goldberg <ross.goldberg@gmail.com>
To: zsh-workers@zsh.org
Subject: Adding builtin command option aliases
Date: Wed, 25 Mar 2020 15:21:40 -0400	[thread overview]
Message-ID: <CAAEcvMoD77RBSVZ=--aweZ1fcWoEVxRTtmmvZxOAWy2DWt8AhQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 515 bytes --]

Would you be willing to add option aliases to builtin commands to align
with other shells, like bash, so that scripts will be more easily portable
across multiple shells?

e.g., bash read has the -a argument, while zsh read has -A.  They seem to
do the exact same thing.  It's a shame that a script needs to detect which
shell is running to determine which option to use.

Providing such interoperability might increase the number of zsh users, and
ease the transition for macOS 10.15+ & other users

Thanks,

Ross

             reply	other threads:[~2020-03-25 19:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-25 19:21 Ross Goldberg [this message]
2020-03-25 23:17 ` Daniel Shahaf
2020-03-26  5:22   ` Roman Perepelitsa

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='CAAEcvMoD77RBSVZ=--aweZ1fcWoEVxRTtmmvZxOAWy2DWt8AhQ@mail.gmail.com' \
    --to=ross.goldberg@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).