From: Herbert Xu Subject: Re: Line continuation and variables Date: Thu, 30 Oct 2014 10:10:22 +0800 Message-ID: <20141030021022.GA29951@gondor.apana.org.au> References: <1554581409055304@web13g.yandex.ru> <53FC7EE2.7000309@redhat.com> <20140929145507.GA3670@gondor.apana.org.au> <20141029215230.GA48394@stack.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from helcar.apana.org.au ([209.40.204.226]:57743 "EHLO helcar.apana.org.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756754AbaJ3CKg (ORCPT ); Wed, 29 Oct 2014 22:10:36 -0400 Content-Disposition: inline In-Reply-To: <20141029215230.GA48394@stack.nl> Sender: dash-owner@vger.kernel.org List-Id: dash@vger.kernel.org To: Jilles Tjoelker Cc: Eric Blake , Oleg Bulatov , dash@vger.kernel.org On Wed, Oct 29, 2014 at 10:52:30PM +0100, Jilles Tjoelker wrote: > > This implementation of pgetc_eatbnl() does not allow pushing back a > backslash, since that would call pungetc() twice without an intervening > pgetc(). However, some places do attempt to push back a backslash. As a > result, a script file containing many repeated ${w#\#} will not be > parsed correctly. There is a similar bug with repeated $\# but this is > not specified by POSIX. Good catch! I guess I'll do something similar to tokpushback to handle this. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt