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

Re: PATCH: (2): Bug#255788: $'' does not work after <<<



[I've dropped bugs.debian.org from this.]

On Wed, 30 Jun 2004, Peter Stephenson wrote:

> I've finally plucked up my courage for another round...
> 
> Bart Schaefer wrote:
> > 
> > schaefer<501> cat <<`echo `foo `bar
> > bquote> `
> > bquote> `
> > bquote> `
> > bquote> 
> 
> Hmmm... are you sure?

Ah, it's SUN_KEYBOARD_HACK causing the solitary backtick to be silently
discaraded.  With "zsh -f" I get what you got:

> % cat <<`echo `foo `bar
> bquote> `
> heredoc> 
> 
> At this point, there's no way of finishing the here-document because it
> parses line by line and can't match the newline.

I see; but if completion is active you're now in a state where it's not 
possible to get zsh to recognize the EOF character, unless it's bound to 
something different than delete-char-or-list.  So you must type interrupt 
to get on with your life.  That's what bothers me ... but I guess it was 
always that way and I just never noticed before.



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