GNU bug report logs - #20733
coreutils build problem

Previous Next

Package: coreutils;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Thu, 4 Jun 2015 19:18:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Nick Bowler <nbowler <at> elliptictech.com>
To: Eric Blake <eblake <at> redhat.com>
Cc: 20733 <at> debbugs.gnu.org, Michael Felt <mamfelt <at> gmail.com>, Paul Eggert <eggert <at> cs.ucla.edu>, "bug-autoconf <at> gnu.org" <bug-autoconf <at> gnu.org>
Subject: bug#20733: coreutils build problem
Date: Thu, 4 Jun 2015 16:56:02 -0400
On 2015-06-04 14:41 -0600, Eric Blake wrote:
> On 06/04/2015 02:17 PM, Nick Bowler wrote:
> > Do these problematic shells properly handle:
> > 
> >   for arg
> >   do
> >     ...
> >   done
> > 
> > when $# is 0?
> 
> Yes; all shells do.

OK, good to know.

[...]
> it's not the expand-to-nothing that is a problem, it is the actual
> omission:
> 
> $ /bin/sh -c 'for a in ; do :; done'
> /bin/sh: syntax error at line 1: `;' unexpected
> $ /bin/sh -c 'for a in $nothing; do :; done'
> $

Right, I see that now in the doc patch you posted.  So in Autoconf this
might turn up if you generate the list with m4, but is highly unlikely
to be an issue for "pure" shell code.

Thanks,
-- 
Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)




This bug report was last modified 10 years and 48 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.