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
        [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to