Strange System Variable set

Eric Blake eblake@redhat.com
Wed Nov 24 18:16:00 GMT 2010


On 11/24/2010 09:09 AM, rudolf.bendl@extern.sdv-it.de wrote:
> Hi All,
> 
> for whatever reason I have strange entries in my system variables  like:
> 
> sh-3.2$ set
> !::='::\'
> !C:='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 
> 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.

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20101124/a1bcb1b8/attachment.sig>


More information about the Cygwin mailing list