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

Re: History !# substitutions



On May 29, 10:19am, Peter Stephenson wrote:
} Subject: Re: History !# substitutions
}
} > The !# substitution, which shuffles words from the current command line,
} > has always been a bit flaky in zsh, but now it seems to be broken entirely.

On May 29,  5:20pm, Peter Stephenson wrote:
} Subject: Re: History !# substitutions
}
} pws@xxxxxx wrote:
} > I hope flakiness can now be avoided entirely.
} 
} Did I really say that?

You did, but thank you anyway.  This is the least flaky I can ever recall
it being.  The only thing that still doesn't work is completion of a
reference into the current command, and even that now works a lot better
than it used to.

Here's zsh 2.4.300:

zipx1[22] echo foo bar !#:1 ba<TAB>
zsh: no such word in event
zipx1[22] echo foo bar
                       ^
		cursor here

Here's beta19 with your two patches:

zigzag% echo foo bar !#:1 ba<TAB>
[BEEP][cursor doesn't move]

Much better, but still not perfect.  I realize it probably can't expand
to the correct word, but could it at least ignore the history error and
continue completing stuff on the rest of the line?

-- 
Bart Schaefer                             Brass Lantern Enterprises
http://www.well.com/user/barts            http://www.nbn.com/people/lantern

New male in /home/schaefer:
>N  2 Justin William Schaefer  Sat May 11 03:43  53/4040  "Happy Birthday"




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