Date: Tue, 14 Jan 2003 23:53:23 -0600 From: Dan Nelson <dnelson@allantgroup.com> To: Chad Kline <i18rabbit@yahoo.com> Cc: questions@FreeBSD.ORG Subject: Re: sh sourcing bug? test bug? Message-ID: <20030115055323.GG42135@dan.emsphone.com> In-Reply-To: <20030115052103.5455.qmail@web20310.mail.yahoo.com> References: <20030115052103.5455.qmail@web20310.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030115055323.GG42135>