From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 6 21:56:08 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D187106564A for ; Sun, 6 Apr 2008 21:56:08 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id CBACD8FC13 for ; Sun, 6 Apr 2008 21:56:07 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 570EF2089; Sun, 6 Apr 2008 23:56:06 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Julian Elischer References: <47F8C1B3.4030902@unitix.org> <47F913AE.3040604@elischer.org> Date: Sun, 06 Apr 2008 23:56:05 +0200 In-Reply-To: <47F913AE.3040604@elischer.org> (Julian Elischer's message of "Sun\, 06 Apr 2008 11\:17\:18 -0700") Message-ID: <86ej9i3ax6.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, dino Subject: Re: bug in /bin/sh?!? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Apr 2008 21:56:08 -0000 Julian Elischer 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