zsh-workers
 help / color / mirror / code / Atom feed
* Unexpected alias expansion in history list
@ 2003-08-10 22:19 Haakon Riiser
  2003-08-11 13:10 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Haakon Riiser @ 2003-08-10 22:19 UTC (permalink / raw)
  To: zsh-workers

The following "bug" is probably not important, since it only
happens in a syntactically illegal command, but I chose to report
it anyway, in case the bug has other (more serious) symptomps.

Steps to reproduce:

  % zsh -f
  % alias foo='foo bar'
  % (foo) foo
  zsh: parse error near `foo'
  % history
      1  alias foo='foo bar'
      2  (foo) foo bar
               ^^^^^^^
Here, the second "foo" has been expanded.  This only happens when
the first word in the alias expansion is the same as the name of
the alias being expanded.

Verified on the following systems:

  zsh 4.1.1 (i686-pc-linux-gnu)
  zsh 4.0.2 (i686-pc-linux-gnu)
  zsh 4.0.2 (sparc-sun-solaris2.6)
  zsh 3.0.6 (sparc-sun-solaris2.6)

-- 
 Haakon


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

end of thread, other threads:[~2003-08-11 13:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-10 22:19 Unexpected alias expansion in history list Haakon Riiser
2003-08-11 13:10 ` Peter Stephenson

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