Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" 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 Content-Type: text/plain; charset=iso-8859-8 Content-Transfer-Encoding: 7bit On Thu, 13 Sep 2001 19:55:24 -0400, Klaus Steden 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/