how2 read value of DOS env var containing a "." ?

richardson@evansville.edu richardson@evansville.edu
Fri Mar 2 09:26:00 GMT 2001


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



More information about the Cygwin mailing list