From owner-freebsd-questions Tue Jan 14 21:53:31 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF47B37B401 for ; Tue, 14 Jan 2003 21:53:29 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1525043F1E for ; Tue, 14 Jan 2003 21:53:29 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.6/8.12.6) id h0F5rN3F052017; Tue, 14 Jan 2003 23:53:23 -0600 (CST) (envelope-from dan) Date: Tue, 14 Jan 2003 23:53:23 -0600 From: Dan Nelson To: Chad Kline Cc: questions@FreeBSD.ORG Subject: Re: sh sourcing bug? test bug? Message-ID: <20030115055323.GG42135@dan.emsphone.com> References: <20030115052103.5455.qmail@web20310.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030115052103.5455.qmail@web20310.mail.yahoo.com> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.3i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Jan 14), Chad Kline said: > fbsd 4.7 > > SCRIPT > --- > echo 1:$1 > echo 2:$2 > --- > > COMMAND LINE > --- > . ./script x y > --- > > OUTPUT > --- > 1: > 2: > --- > > shouldn't the output be: > 1:x > 2:y Not sure. The sh defined at opengroup.org doesn't even have a dot command. In FreeBSD's (and debian's) /bin/sh, each instance of "." pushes the contents of the specified filename into the command stream. It's more of an input redirection operator than a command. I don't know what POSIX has to say about it. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message