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

Re: PATCH: completion with redirections



Bart Schaefer wrote:

> 
> On Jan 25,  3:01pm, Peter Stephenson wrote:
> } Subject: Re: PATCH: completion with redirections
> }
> } Sven Wischnowsky wrote:
> } > There is a problem: this array contains ")" instead of '>',
> } 
> } I can't see how it can possibly be right as it stands, looking at
> } what's around it.
> 
> This typo, if that's what it is, has been around for a long time; it'
> that way in globals.h in 3.0.5.  Where has tokstrings (not) been used
> all this time, that no one ever noticed?

That's why I was reluctant to change it without asking first.

The only place where tokstrings was used is in exalias() if that is
called with tokstring=NULL after spell-checking, which happens
whenever a redirection operator is parsed. The value from the table
will be used if someone calls yylex(), gets the token for a
redirection operator and uses tokstr before calling yylex()
again. After searching a bit I still can't find a place where this
happens.


Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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