наб <nabijaczleweli@xxxxxxxxxxxxxxxxxx> wrote: > > synerror(const char *msg) > { > errlinno = plinno; > + > + /* If we see a syntax error in a command, read the rest of the > + * line now before reporting the error. This ensures we get error > + * reporting that does not depend on buffering details. */ > + skipline(); This is broken. What if we already read a newline just before the syntax error (e.g., synexpect(TDO))? This needs to be dealt with in the input layer. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt