| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Date: | Fri, 14 Sep 2001 10:16:39 +0300 |
| Message-Id: | <200109140716.KAA18842@linux.> |
| From: | "Ehud Karni" <ehud AT unix DOT simonwiesel DOT co DOT il> |
| To: | klaus AT compt DOT com |
| Subject: | Re: command line args to cygwin from DOS shell? |
| CC: | cygwin AT cygwin DOT com |
| In-reply-to: | <20010913195523.B95706@cthulu.compt.com> (message from Klaus |
| Steden on Thu, 13 Sep 2001 19:55:24 -0400) | |
| Organization: | Simon & Wiesel Insurance agency |
| Reply-to: | ehud AT unix DOT simonwiesel DOT co DOT il |
| References: | <20010913195523 DOT B95706 AT cthulu DOT compt DOT com> |
| X-Mailer: | Emacs 20.7.1 rmail (send-msg 1.105) |
| MIME-Version: | 1.0 |
On Thu, 13 Sep 2001 19:55:24 -0400, Klaus Steden <klaus AT compt DOT com> wrote:
>
> The cygwin dir isn't part of the default NT path, so all scripts are run
> through bash based on the .sh extension association.
>
> However, that scenario doesn't seem to be passing command line arguments
> correctly. i.e.
>
> Z:\> TBrender.sh -s 50 -e 51 scenes/dynamics/a_test.mb
>
> $0 gets set ... but $@, $*, $1, etc. are empty.
Check your association. I use the same technique (on W98) and this my
.sh association: bourne shell script file
(C:\CYGWIN\BIN\BASH.EXE -ex %1 %2 %3 %4 %5 %6 %7 %8 %9)
The exact Registry values are:
[HKEY_LOCAL_MACHINE\Software\CLASSES\.sh]
@="sh_file"
[HKEY_LOCAL_MACHINE\Software\CLASSES\sh_file]
@="bourne shell script file"
[HKEY_LOCAL_MACHINE\Software\CLASSES\sh_file\shell]
@="open"
[HKEY_LOCAL_MACHINE\Software\CLASSES\sh_file\shell\open]
[HKEY_LOCAL_MACHINE\Software\CLASSES\sh_file\shell\open\command]
@="C:\\CYGWIN\\BIN\\BASH.EXE -ex %1 %2 %3 %4 %5 %6 %7 %8 %9"
I hope it helps you,
Ehud.
--
Ehud Karni Mivtach - Simon Insurance /"\
Tel: +972-3-7966-561 Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign
(USA) Fax and voice mail: 1-815-5509341 X Against HTML Mail
Better Safe Than Sorry / \
mailto:ehud AT unix DOT simonwiesel DOT co DOT il http://www.simonwiesel.co.il
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |