This is the mail archive of the cygwin@sources.redhat.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: how2 read value of DOS env var containing a "." ?


Not pretty, but works:

bashvar=$(set | grep DOS.VAR | cut -d= -f2)

(I didn't know that bash vars couldn't have "."s in their
names. I wonder why not?)

Tony Richardson

> -----Original Message-----
> From: rodmant@pounder.sol.net [mailto:rodmant@pounder.sol.net]
> Sent: Friday, March 02, 2001 8:27 AM
> To: cygwin@sources.redhat.com
> Subject: how2 read value of DOS env var containing a "." ?
> 
> 
> Can any one figure out how to read the value of
> a DOS environmental variable that contains a "." in it's
> name. I would like to stay in a bash shell (ie
> avoid using perl, and avoid invoking cmd.exe).
> 
> thanks,
> 
> Tom
> rodmant@pounder.sol.net
> 
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple
> 



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