zsh-workers
 help / color / mirror / code / Atom feed
* Aliasing assignment-ish words (aliases[x=y]=z)
@ 2016-01-01  0:37 Daniel Shahaf
  2016-01-10 19:19 ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Shahaf @ 2016-01-01  0:37 UTC (permalink / raw)
  To: zsh-workers

[-- 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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-01-13  0:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-01  0:37 Aliasing assignment-ish words (aliases[x=y]=z) Daniel Shahaf
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

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).