This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Unusual environemtal variables


-----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@byu.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]