This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bash variable don't substitute. Why ?


On Thu, Mar 08, 2001 at 09:51:27AM -0000, CORETO - Rui Anast?cio wrote:
> 
>  Hi !
> 
>  I have installed the lattest version of cygwin. But my $vars dont
> substitute :(
> 
> -TEST----------------------------------------------
> $ cat t.bat
> echo $PATH
> ls $1 -l
> 
> 
> $ ./t.bat /home
> 
> C:\cygwin\home\coreto03>echo $PATH
>                                   ls $1 -l
> 
> $PATH
>      ls $1 -l
> 
> 
> 
> coreto03@CORETO03 ~
> -----------------------------------------------------
> 
>  Help !!!

Don't name the file `t.BAT' since it's using CMD/COMMAND for
execution. Name it `t.sh' or just `t'.  And prepend the following
line to the script:

	#!/bin/sh

or

	#!/bin/bash

whatever you want to call.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]