From owner-freebsd-current Tue Dec 14 6:39:35 1999 Delivered-To: freebsd-current@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id 2B4A014BE6 for ; Tue, 14 Dec 1999 06:39:31 -0800 (PST) (envelope-from marcel@scc.nl) Received: from [212.238.132.94] (helo=scones.sup.scc.nl) by post.mail.nl.demon.net with esmtp (Exim 2.02 #1) id 11xt6v-0007d5-00; Tue, 14 Dec 1999 14:39:29 +0000 Received: from scc.nl (scones.sup.scc.nl [192.168.2.4]) by scones.sup.scc.nl (8.9.3/8.9.3) with ESMTP id PAA08756; Tue, 14 Dec 1999 15:39:26 +0100 (CET) (envelope-from marcel@scc.nl) Message-ID: <3856569E.B665230D@scc.nl> Date: Tue, 14 Dec 1999 15:39:26 +0100 From: Marcel Moolenaar Organization: SCC vof X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.5 i386) X-Accept-Language: en MIME-Version: 1.0 To: Sheldon Hearn Cc: current@FreeBSD.ORG Subject: Re: Broken sh(1): A more specific example References: <46419.945180005@axl.noc.iafrica.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sheldon Hearn wrote: > > On Tue, 14 Dec 1999 14:48:51 +0100, Marcel Moolenaar wrote: > > > #!/bin/sh > > PATH=/usr/obj/usr/src/i386/bin:/usr/obj/usr/src/i386/usr/bin:\ > > /usr/obj/usr/src/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin:\ > > /usr/games:/usr/local/bin:/usr/X11R6/bin:/home/marcel/bin ls > > ls > > What do you think the shell should be doing with this malformed path? I assume you all understand that this was a simple invocation of PATH=something ls. You all heard of line-continuation didn't you? Anyway, try this: scones% sh % PATH=/foobar:$PATH ls % ls ls: not found -- Marcel Moolenaar mailto:marcel@scc.nl SCC Internetworking & Databases http://www.scc.nl/ The FreeBSD project mailto:marcel@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message