From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Subject: Aliasing assignment-ish words (aliases[x=y]=z)
Date: Sun, Jan 01 2016 00:37:57 +0000 [thread overview]
Message-ID: <20160110003757.GA18461@tarsus.local2> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 438 bytes --]
1 $ zsh -f
2 % aliases[x=y]=z
3 % alias -L
4 alias run-help=man
5 alias which-command=whence
6 alias 'x=y'=z
7 % which x=y
8 x=y: aliased to z
9 % x=y
10 % echo $+x
11 1
12 %
Shouldn't line 9 have interpreted the word 'x=y' as an alias? Or
perhaps line 2 should have signaled an error.
Also, the 'alias -L' output for that alias won't work as the code
producing the output intended.
next reply other threads:[~2016-01-10 0:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-01 0:37 Daniel Shahaf [this message]
2016-01-10 19:19 ` Bart Schaefer
2016-01-10 19:50 ` Daniel Shahaf
2016-01-12 7:44 ` Bart Schaefer
2016-01-13 0:57 ` Daniel Shahaf
2016-01-13 0:58 ` Daniel Shahaf
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=20160110003757.GA18461@tarsus.local2 \
--to=d.s@daniel.shahaf.name \
--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).