delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/03/23/17:56:00

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:reply-to:mime-version:content-type:content-transfer-encoding
:in-reply-to; q=dns; s=default; b=Jsbbli8CwpZraxmdS5cxso0nNdz67N
Qc788CAaaiCFgrX2gl3rktpNgORcuw53cWRFnSNgG8F/Eue28zkI/blgh6B1fB4N
YzhqJoGotdUxF2737sbi3kClJ5isGntYFczBNqVGA8NJsDki0eRhQ8YsZJiElFz0
kjee3/YQyYsLg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:reply-to:mime-version:content-type:content-transfer-encoding
:in-reply-to; s=default; bh=X8+phRoSPRLyHjrIRk6fyKRsOfU=; b=ma2d
oYT6H4sr9JLvgS2FmiDIB7qpWB7YeC39xSiYIiA+LBM1lvYRmjeznal72BHdlU3k
u/JbBK+T8KpcRl82GU2O8mSvkJHw3YuivpTfxwuLq1qUpJpG1bxZSLBoXwOJgNJx
pffondS8Ry9vEVpKYCM8W7MEp0Sqp5ueMZ54U7U=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*UA:Lightning, H*u:Lightning, H*r:Unknown, H*UA:en-US
X-HELO: blaine.gmane.org
To: cygwin AT cygwin DOT com
From: =?UTF-8?Q?Ren=c3=a9_Berber?= <rene DOT berber AT gmail DOT com>
Subject: Re: Unable to delete Cygwin from PATH environment variable
Date: Thu, 23 Mar 2017 15:53:24 -0600
Lines: 29
Message-ID: <ob1g83$ujm$1@blaine.gmane.org>
References: <CAOqcJJE9u=xSPkvMSeXZTHDKfBS58XBEhq2c+Jv4dPT-b9rCLA AT mail DOT gmail DOT com>
Reply-To: Do not reply <rene DOT berber AT gmail DOT com>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0
In-Reply-To: <CAOqcJJE9u=xSPkvMSeXZTHDKfBS58XBEhq2c+Jv4dPT-b9rCLA@mail.gmail.com>
X-IsSubscribed: yes

On 3/23/2017 3:10 PM, Tanya Sandoval wrote:

> I recently had to reinstall Cygwin and in doing so, I have ran into a
> problem with some application because Cygwin seems to be appended to
> my PATH environment variable. I have tried to remove this by following
> these instructions https://www.java.com/en/download/help/path.xml but
> something strange happens. If I look at the value of Path under
> 'Environment Variables', Cygwin is not there; however if I type PATH
> in cmd.exe, I see Cygwin gets appended at the end of the PATH. Can you
> please help me to know to remove Cygwin from the PATH?

If you mean PATH in a terminal, then you, or the terminal program
(mintty perhaps) are running a shell (bash).  If you did not mean in a
terminal, then also look at the user's environment vars (there are 2
sets: global, and local).

The shell, depending on the parameters which it was invoked with,
usually runs one of its configuration files (bash runs either .bashrc,
or .bash_profile, also /etc/profile), which usually is what sets the
environment you see inside the terminal+shell.

You can direct the shell not to read config files (bash --noprofile
--norc), or change all the possible config files, which is much more
involved, and affect every invocation of the shell... which is not what
you probably want.

Hope this helps.
-- 
R. Berber


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

- Raw text -


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