delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/11/24/11:23:31

X-Recipient: archive-cygwin AT delorie DOT 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 AT redhat DOT 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 AT cygwin DOT com
Subject: Re: Strange System Variable set
References: <20763_1290614994_4CED38D2_20763_23925_1_OFD8CB4E62 DOT 9863898E-ONC12577E5 DOT 0058C091-C12577E5 DOT 0058CB03 AT nbg DOT sdv DOT spb DOT 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
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

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

On 11/24/2010 09:09 AM, rudolf DOT bendl AT extern DOT sdv-it DOT 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 AT redhat DOT 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--

- Raw text -


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