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 Message-ID: <3981FF3F.F07B0D6D@veritas.com> Date: Fri, 28 Jul 2000 14:46:39 -0700 From: Bob McGowan Organization: VERITAS Software X-Mailer: Mozilla 4.73 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Noel L Yap CC: cygwin AT sourceware DOT cygnus DOT com Subject: Re: sh problem References: <8525692A DOT 00751B78 DOT 00 AT nyc-ntgw-n01 DOT ny DOT jpmorgan DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Transfer-Encoding: 7bit I don't understand the problem your having. It doesn't matter, in the example your using now, whether or not you use command line arguments or not, the script recurses infinitely (at least for me), so long as the file is in the current directory, of course. In fact, this script works too: #!/bin/sh echo # could add any old string here to see the output ./asdf.sh The output is a series of blank lines, but at least initially you should see the last prompt and the command scrolling up and off the top of the window. I tried your original script, as well, and could not get it to duplicate as you described. What am I missing? Noel L Yap wrote: > > Yeah, I actually had: > #!/bin/sh > echo $* > ./asdf.sh "$@" > > Noel > > ray DOT easton AT wcom DOT com on 2000.07.28 16:28:57 > > To: yap_noel AT jpmorgan DOT com > cc: > Subject: Re: sh problem > > Noel L Yap wrote: > > > I've > > rewritten my script asdf.sh to be: > > > > #!/bin/sh > > echo $* > > ./asdf.sh > > Don't you want -- > > #!/bin/sh > echo $* > ./asdf.sh $* > > -- if you are expecting an infinite loop. As it is in fact written, the output > looks just as I would expect to > . > -- > > ray > > -- je suis marxiste, tendance groucho > > This communication is for informational purposes only. It is not intended as > an offer or solicitation for the purchase or sale of any financial instrument > or as an official confirmation of any transaction. All market prices, data > and other information are not warranted as to completeness or accuracy and > are subject to change without notice. Any comments or statements made herein > do not necessarily reflect those of J.P. Morgan & Co. Incorporated, its > subsidiaries and affiliates. > > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com -- Bob McGowan Staff Software Quality Engineer VERITAS Software rmcgowan AT veritas DOT com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com