delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/02/12:30:21

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: richardson AT evansville DOT edu
Date: Fri, 02 Mar 2001 17:26:12 GMT
Message-ID: <20010302.17261236@ar63pc.cecs.evansville.edu>
Subject: RE: how2 read value of DOS env var containing a "." ?
To: rodmant AT pounder DOT sol DOT net, cygwin AT sources DOT redhat DOT com
Reply-To: richardson AT evansville DOT edu
X-Mailer: Mozilla/3.0 (compatible; StarOffice/5.2;Win32)
X-Priority: 3 (Normal)
MIME-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id MAA24047

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 AT pounder DOT sol DOT net [mailto:rodmant AT pounder DOT sol DOT net]
> Sent: Friday, March 02, 2001 8:27 AM
> To: cygwin AT sources DOT redhat DOT 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 AT pounder DOT sol DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019