delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/15/11:34:31

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: <004c01c0dd54$ce9f6d80$794988d4@riih223>
From: "Jean-Paul de Gier" <j DOT de DOT gier AT industrious DOT nl>
To: <cygwin AT cygwin DOT com>
References: <018e01c0dd35$c02836c0$794988d4 AT riih223> <upudairhk DOT fsf AT compaq DOT com>
Subject: Re: bash: bug in parameter passing
Date: Tue, 15 May 2001 17:36:21 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200

Oops,

i renamed the scripts and didn't test them again. 

I tested my scripts with bash 2.05-2 ?? In setup.log.full i see
latest/bash/bash-2.05-2-src.tar.gz 1798288.

If there is a new version i will test it again.


Jean-Paul.

----- Original Message ----- 
From: "Karel Sprenger" <karel DOT sprenger AT compaq DOT com>
To: "Jean-Paul de Gier" <j DOT de DOT gier AT industrious DOT nl>
Cc: <cygwin AT cygwin DOT com>; "Karel Sprenger" <karel DOT sprenger AT compaq DOT com>
Sent: Tuesday, May 15, 2001 5:03 PM
Subject: Re: bash: bug in parameter passing


> Hi,
> 
> >>> On Tue, 15 May 2001 13:48:17 +0200, Jean-Paul de Gier (Jean-Paul)
> >>> wrote:
> Jean-Paul> 
> Jean-Paul> Hi,
> Jean-Paul> Consider the following script:
> Jean-Paul> 
> Jean-Paul> #test 
> Jean-Paul> echo parameter $1
> Jean-Paul> 
> Jean-Paul> which is called by this script:
> Jean-Paul> 
> Jean-Paul> # testparam
> Jean-Paul> echo testparam $1
> Jean-Paul>   test param1
> Jean-Paul> 
> Jean-Paul> Notice the dot in front of the call of script test.
> Jean-Paul> If you run the last script, say testparam 123
> Jean-Paul> then you will see:
> Jean-Paul> testparam 123
> Jean-Paul> parameter 123
> Jean-Paul> 
> Jean-Paul> instead of:
> Jean-Paul> testparam 123
> Jean-Paul> parameter param1
> Jean-Paul> 
> Jean-Paul> I would say that this is a bug.
> Jean-Paul> 
> 
> With Bash 2.05.0(6) I get the expected rather than the erroneous
> result.  However I had to change the third line of script testparam to
> read ". ./test" else bash would complain it couldn't find
> /usr/bin/test.
> 
> Cheers,
> Karel
> 
> -- 
> Karel Sprenger, senior solution specialist
> COMPAQ, Professional Services
> Phone:  +31 (30) 283 4542           Private: +31 (20) 670 0942
> E-mail: karel DOT sprenger AT compaq DOT com   Private: cjas AT xs4all DOT nl
> "Memory fault -- core...uh...um...core... Oh dammit, I forget!"
> 
> 
> 



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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