| delorie.com/archives/browse.cgi | search |
| 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 |
| Message-Id: | <200103031351.HAA09018@tigris.pounder.sol.net> |
| To: | richardson AT evansville DOT edu, cygwin AT sources DOT redhat DOT com |
| Reply-to: | Tom Rodman <rodmant AT pounder DOT sol DOT net> |
| From: | Tom Rodman <rodmant AT pounder DOT sol DOT net> |
| Subject: | Re: how2 read value of DOS env var containing a "." ? |
| In-reply-to: | Your message of "Fri, 02 Mar 2001 17:57:21 GMT." |
| <20010302 DOT 17572189 AT ar63pc DOT cecs DOT evansville DOT edu> | |
| Date: | Sat, 03 Mar 2001 07:51:30 -0600 |
The guy (Bob) at work that asked me the original question came up
with this soln:
set HACK=FOO.BAR ; echo ${!HACK} ; FOO_BAR=${!HACK}
Thanks Tony and Earnie for your help!
-Tom
On Fri 3/2/01 17:57 GMT richardson AT evansville DOT edu wrote:
>It's kind of obvious that it was programmed not too, isn't it?
>I was just kind of wondering out loud about why a dot was not
>allowed as a legal character in a variable name by the bash
>designers.
>
>I don't think it is a good idea to modify bash so that you
>can write scripts that aren't compatible with original bash.
>A workaround is called for here. That's what I suggested.
>
>Tony Richardson
>
>>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
>
>On 3/2/2001, 11:46:33 AM, Earnie Boyd <earnie_boyd AT yahoo DOT com> wrote=20
>regarding Re: how2 read value of DOS env var containing a "." ?:
>
>
>> richardson AT evansville DOT edu wrote:
>> >
>> > Not pretty, but works:
>> >
>> > bashvar=3D$(set | grep DOS.VAR | cut -d=3D -f2)
>> >
>> > (I didn't know that bash vars couldn't have "."s in their
>> > names. I wonder why not?)
>> >
>
>> Uhm, just because it was programmed not too? Use the source, Luke.
>> (tm) It is very easily modifiable.
>
>> Earnie.
>
>> _________________________________________________________
>> Do You Yahoo!?
>> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>> --
>> Want to unsubscribe from this list?
>> Check out: http://cygwin.com/ml/#unsubscribe-simple
------- End of Unsent Draft
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |