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: List-Subscribe: List-Archive: List-Post: List-Help: , 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?= Subject: Re: Unable to delete Cygwin from PATH environment variable Date: Thu, 23 Mar 2017 15:53:24 -0600 Lines: 29 Message-ID: References: Reply-To: Do not reply Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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: 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