X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-6.8 required=5.0	tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4CED3BF4.8040105@redhat.com>
Date: Wed, 24 Nov 2010 09:23:16 -0700
From: Eric Blake <eblake@redhat.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101103 Fedora/1.0-0.33.b2pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.6
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Strange System Variable set
References: <20763_1290614994_4CED38D2_20763_23925_1_OFD8CB4E62.9863898E-ONC12577E5.0058C091-C12577E5.0058CB03@nbg.sdv.spb.de>
In-Reply-To: <20763_1290614994_4CED38D2_20763_23925_1_OFD8CB4E62.9863898E-ONC12577E5.0058C091-C12577E5.0058CB03@nbg.sdv.spb.de>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigD5406157919F2E16E182EF8C"
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

--------------enigD5406157919F2E16E182EF8C
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 11/24/2010 09:09 AM, rudolf.bendl@extern.sdv-it.de wrote:
> Hi All,
>=20
> for whatever reason I have strange entries in my system variables  like:
>=20
> sh-3.2$ set
> !::=3D'::\'
> !C:=3D'C:\Users\a00bend'

Yep - POSIX requires that the shell preserve any inherited environment
variables that cannot form valid shell variables.  They come from
Windows, and you can generally ignore them.

> I cannot get rid of these using "unset !C:" Is there a way to delete=20
> system variables?

Why do you need them deleted?  If you really do have a use case where
they negatively affect a child process, then you can use env -u to unset
them for the child process.  There's no way to unset them in the bash
process, but there's also no way for the bash process to misbehave
because they are present.

--=20
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enigD5406157919F2E16E182EF8C
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJM7Tv0AAoJEKeha0olJ0NqdMEH/A+Ow18hXMKhDp5MMENNm5n0
2BzaaefhDIWR3ZfKpOroBgyhGXsx/h/+IgfzEeHGYX2pHBnGpPhTXIMvcjZ6oxay
GhY9AlC1Y1FJxsxGj2M1CwLn9mHa4RxE7J10+Hwfjta/0ZXt1HqLfF4f+ywSpUeh
umaEQOm2G45mmL83Rwv593J/KYhFuCbxyGt/cxuc0TB7yoU4wnh7CoC4HEo7dQXh
PszhBg1hLn5PialPImTAUpjVSTs39X3ozd9D/P8NlL1ATNuqRUKUsrggN6F0ZBPQ
obvcEphnVf0674Eq2loANBbDw8OzrxaoA4gLVxfRvkOBuydi7Qt5DDdE5ZHDnPg=
=s859
-----END PGP SIGNATURE-----

--------------enigD5406157919F2E16E182EF8C--
