Subject: Re: /bin/sh messes up quoting when ${var:+$var} substitution includes quotes
To: NetBSD Userlevel Technical Discussion List <tech-userlevel@NetBSD.ORG>
From: David Laight <>
List: tech-userlevel
Date: 06/26/2004 23:25:51
On Mon, Jun 21, 2004 at 06:34:54PM -0400, Greg A. Woods wrote:
> I've encountered a bug in how /bin/sh handles parameter quoting when the
> text in a "${FOO:+$BAR}" variable substitution includes quotes in $BAR.

This is the 'known' problem where IFS isn't applied to ${x-a b c}.
I've just committed a fix to current.


David Laight: