Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jan 2003 21:21:03 -0800 (PST)
From:      Chad Kline <i18rabbit@yahoo.com>
To:        questions@freebsd.org
Subject:   sh sourcing bug?  test bug?
Message-ID:  <20030115052103.5455.qmail@web20310.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
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

???

in bash, "x y" arguments work as expected,
but in FBSD 4.7 and NBSD 1.6L, the arguments
get trashed.

ps. i used slackware about 7 years ago,
    and quickly switched to FBSD, hacking
    NetBSD now and then.  recently,
    i thought i'd give linux a spin again
    with RedHat - and man - heh - it didn't
    take long to realize how "spoiled"
    i had gotten with quality FBSD + ports.
    it's definitely an OS to get spoiled by.
    i hope it always keeps it's designs of
    stability, reliability, flexibility,
    modularity, and efficiency.


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.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?20030115052103.5455.qmail>