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



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