zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Attempt to document aliasing more fully
Date: Sun, 15 Mar 2015 18:35:01 +0000	[thread overview]
Message-ID: <20150315183501.12dda876@ntlworld.com> (raw)
In-Reply-To: <150314135406.ZM26021@torch.brasslantern.com>

On Sat, 14 Mar 2015 13:54:06 -0700
Bart Schaefer <schaefer@brasslantern.com> wrote:
> So here is what I have (see diff below).  This describes the situation
> prior to workers/34641.  To keep 34641, we'd just have to add another
> itemiz() calling out command separators as a separate class of "word",
> though I still think that if included, those should (a) still exclude
> newline and (b) require "alias -g".

Thanks, that looks reasonable.  I'd sort of vaguely be inclined to point
out a bit more actively that if you're aliasing quoted stuff the quotes
form part of the alias (which is kind of weird if your use to shells written by normal people) and maybe hint what therefore doesn't get aliased (though I entirely agree with the basic logic, i.e. spelling out what does), but that's very minor.

I've got no very strong feelings about keeping the new feature since
it's been the way it has for decades and it only got noticed as a side
issue.  However, the limitations above sound sane, since using "alias
-g" is already for hotheads, so maybe that's a good compromise.

> Either way I rather suspect that POSIX_ALIASES should prohibit more
> than just the reserved words, e.g., I doubt that parameter references
> and quoted strings are meant to be allowed in aliases by POSIX.  That
> should get fixed, along with the bug(s) mentioned in 34668 and 34682.

Yes, I agree with that.

pws


  reply	other threads:[~2015-03-15 18:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-14 20:54 Bart Schaefer
2015-03-15 18:35 ` Peter Stephenson [this message]
2015-03-16  6:28   ` Bart Schaefer
2015-03-16  7:20   ` Bart Schaefer

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=20150315183501.12dda876@ntlworld.com \
    --to=p.w.stephenson@ntlworld.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).