X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f Date: Thu, 14 Feb 2002 12:21:38 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Tim Van Holder cc: djgpp-workers AT delorie DOT com Subject: Re: Some small bash issues In-Reply-To: <1013672451.28939.34.camel@bender.falconsoft.be> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 14 Feb 2002, Tim Van Holder wrote: > foo=bar ./shell-script > > because everything in the script is simply a 'new command'. I fail to see the difference between foo=bar ./script and foo=bar echo $foo What is the difference here? > foo=bar ./perl-script > > works fine (presumably, bash tries to process it as a shell script, sees > the #!, expands the envvar, and hands the script off to the system). > On DJGPP, bash runs the script without substituting the variable. Why doesn't Bash expand the variable in the DJGPP port?