Date: Sun, 06 Apr 2008 23:56:05 +0200 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: Julian Elischer <julian@elischer.org> Cc: freebsd-hackers@freebsd.org, dino <dino@unitix.org> Subject: Re: bug in /bin/sh?!? Message-ID: <86ej9i3ax6.fsf@ds4.des.no> In-Reply-To: <47F913AE.3040604@elischer.org> (Julian Elischer's message of "Sun\, 06 Apr 2008 11\:17\:18 -0700") References: <47F8C1B3.4030902@unitix.org> <47F913AE.3040604@elischer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Julian Elischer <julian@elischer.org> writes: > "A B C" is a single value tha thappens to contain spaces. > so, yes there is no splitting at that point. Unfortunately, I do not have a copy of the original Bourne shell, but bash in both bash and sh mode disagrees; zsh in both sh and ksh mode disagrees; pdksh disagrees; the original AT&T ksh disagrees; and I too disagree, since the expansion is not quoted. ${HOME+A B C} expands to A B C which should be split. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ej9i3ax6.fsf>