delorie.com/archives/browse.cgi | search |
Delivered-To: | listarch-cygwin AT sourceware DOT cygnus DOT com |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Date: | Wed, 10 Feb 1999 10:44:34 +0100 |
Message-ID: | <2441-Wed10Feb1999104434+0100-vzell@de.oracle.com> |
X-Mailer: | emacs 20.3.1 (via feedmail 8 I) |
From: | "Dr. Volker Zell" <vzell AT de DOT oracle DOT com> |
To: | luke AT research DOT canon DOT com DOT au |
CC: | cygwin AT sourceware DOT cygnus DOT com |
In-reply-to: | <36C0F482.E7ED2ADF@research.canon.com.au> (message from Luke |
Kendall on 10 Feb 99 03:52:50 +0100) | |
Subject: | Re: Shell bug - no args for sourced scripts |
References: | <36C0F482 DOT E7ED2ADF AT research DOT canon DOT com DOT au> |
User-Agent: | SEMI/1.9.0 (Isurugi) FLIM/1.10.3 (Komada) Emacs/20.3 (i386-*-nt4.0) (with unibyte mode) |
MIME-Version: | 1.0 (generated by SEMI 1.9.0 - "Isurugi") |
>> If you write a script that is designed to set up variables, for >> sourcing in another shell, Cygwin B20.1 sh under NT4.0 ignores >> any parameters passed. >> This differs from Korn shells and bash version 2.01 under >> Solaris. >> E.g. the script "sourcing": >> #!/bin/sh echo "Args are: $@" ARGS="$@" export ARGS >> When run under Cygnus shell like so: >> . ./sourcing test >> demonstrates that the arguments are not seen in the sourced >> shell script. >> Args are: >> Likewise, $# is 0. This works for me ... >> luke Volker -- ___________________________________________________________________________ "Is a dream a lie if it don't come true or is it something worse ..." Dr. Volker Zell __ / _ / __ / ___/ / ___/ -- Senior Dozent -- / / /__/ /_ / / / __/ Oracle Germany ____/__/ _|__/ __/____/ ____/____/ Paul-Thomas-Str.58 D-40599 D|sseldorf e-Mail: mailto:vzell AT de DOT oracle DOT com WWW: http://trgsund4.de.oracle.com/ Tel: (+49) 211-74839-414 Fax: (+49) 211-74839-44 ___________________________________________________________________________ The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |