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: Joerg Sonnenberger <joerg%bec.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: pkg-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, pkgsrc-bugs%netbsd.org@localhost
Subject: Re: pkg/51142: pdksh has occasional issues with empty 'for' loops
Date: Sun, 15 May 2016 19:28:04 +0200

 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. A common
 pattern found e.g. in mk/ is to explicit append '' (empty string) and
 short cut with [ -n "$i" ] || break
 
 Joerg
 


Home | Main Index | Thread Index | Old Index