delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/12/19/08:46:13

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL
X-Spam-Check-By: sourceware.org
Message-ID: <494BA56A.7070009@byu.net>
Date: Fri, 19 Dec 2008 06:45:14 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.18) Gecko/20081105 Thunderbird/2.0.0.18 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, steve DOT rainbird AT mssint DOT com
Subject: Re: Unusual environemtal variables
References: <gifp4m$u1t$1 AT ger DOT gmane DOT org>
In-Reply-To: <gifp4m$u1t$1@ger.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Steve Rainbird on 12/19/2008 2:22 AM:
> When i run a Fuijitsu Cobol program it requires environmental variables
> starting with the @ sign.

That is inherently non-portable.  POSIX states that "Other characters may
be permitted by an implementation; applications shall tolerate the
presence of such names," but does not require applications to be able to
create such names.

http://www.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08

> 
> Is there any way around this?

You'll have to set it in Windows, prior to starting bash, as there is no
way to make bash create variables not starting with something from the
portable set [_a-zA-Z].

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net
volunteer cygwin bash maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklLpWoACgkQ84KuGfSFAYAJqACfcK9X1ipv5NsVY7V6SWDpxO66
Lw0AnRW+z0+iQwaGNJZ2DgSYXjphSsUj
=3wby
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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