delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/15/07:52:03

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: <018e01c0dd35$c02836c0$794988d4@riih223>
From: "Jean-Paul de Gier" <j DOT de DOT gier AT industrious DOT nl>
To: <cygwin AT cygwin DOT com>
Subject: bash: bug in parameter passing
Date: Tue, 15 May 2001 13:48:17 +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

Hi,

Consider the following script:

#test 
echo parameter $1

which is called by this script:

# testparam
echo testparam $1
.  test param1

Notice the dot in front of the call of script test.
If you run the last script, say testparam 123
then you will see:
testparam 123
parameter 123

instead of:
testparam 123
parameter param1

I would say that this is a bug.

With regards,
 
Jean-Paul de Gier  
PinkRoccade Industrious B.V.
Handel, Industrie & Transport
Hambakenwetering 1
Postbus 3412
5203 DK  's Hertogenbosch
voice: (+31) 73 6407807 fax: (+31) 73 6440016
The Netherlands   
http://www.pinkroccade.com



--
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