pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/51142: pdksh has occasional issues with empty 'for' loops



The following reply was made to PR pkg/51142; it has been noted by GNATS.

From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: Joerg Sonnenberger <joerg%bec.de@localhost>
Cc: gnats-bugs%NetBSD.org@localhost, pkgsrc-bugs%netbsd.org@localhost
Subject: Re: pkg/51142: pdksh has occasional issues with empty 'for' loops
Date: Mon, 16 May 2016 08:01:11 +0700

     Date:        Sun, 15 May 2016 19:28:04 +0200
     From:        Joerg Sonnenberger <joerg%bec.de@localhost>
     Message-ID:  <20160515172804.GA11874%britannica.bec.de@localhost>
 
   | On Sun, May 15, 2016 at 05:05:00PM +0000, richard%NetBSD.org@localhost wrote:
   | > >Synopsis:       pdksh has occasional issues with empty 'for' loops
   | 
   | That's not a shell bug, but a "feature" of the standard.
 
 I believe you're thinking of "for i; do" rather than "for i in; do"
 
 It certainly looks like a bug in pdksh to me (it isn't as if it does not
 have many) - certainly if that were reported against /bin/sh I would be
 fixing it.
 
 I notice the PR says that bash and ksh93 work (as they should) but says
 nothing about /bin/sh.  Is there a reason for that?  (In general, unless you
 want it for interactive use reasons, I'd always suggest /bin/sh on NetBSD
 over /bin/ksh)
 
 kre
 
 


Home | Main Index | Thread Index | Old Index