Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Comments in ZLE



On Fri, Feb 13, 2009 at 11:01:37PM +0100, Frank Terbeck wrote:
> Frank Jeschke <jes@xxxxxxxxx>:
> > my zsh shows strange behavior I don't understand and doesn't find on
> > google. When typing a command line comment it out and hit enter the I
> > get the following:
> > 
> > sss@kyag:[~]$ #vim /tmp/foo
> > zsh: command not found: #vim
> > jes@kyag:[~]$ zsh --version
> > zsh 4.3.4 (i686-pc-linux-gnu)
> > 
> > zsh 4.3.2 shows the same behavior.
> > 
> > Does anyone know why this happens? Is this known behavior? How can I
> > get rid of it?
> 
> % man zshoptions | less -p INTERACTIVE_COM
> 
> Regards, Frank

I shared Frank's confusion until I recently stumbled over the
INTERACTIVE_COM option by accident. Is there a specific reason why this
is off by default? To avoid clashes with commands that start with '#'?
Can '#' be used to do history expansion like '!' or something like this?



Messages sorted by: Reverse Date, Date, Thread, Author