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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 02, 2001 8:27 AM
> To: [EMAIL PROTECTED]
> 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
> [EMAIL PROTECTED]
> 
> --
> 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

Reply via email to