delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/28/17:44:38

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
Message-ID: <3981FF3F.F07B0D6D@veritas.com>
Date: Fri, 28 Jul 2000 14:46:39 -0700
From: Bob McGowan <rmcgowan AT veritas DOT com>
Organization: VERITAS Software
X-Mailer: Mozilla 4.73 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Noel L Yap <yap_noel AT jpmorgan DOT com>
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>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019