delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/01/10:38:29

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Date: Tue, 1 Dec 2009 16:38:16 +0100
To: cygwin AT cygwin DOT com
Subject: Re: how to get the windows PATH env in cygwin
Message-ID: <20091201153816.GA21362@win.tue.nl>
References: <8d7f7110911300444l7ab3c2c8l5ac1edf0097d2065 AT mail DOT gmail DOT com> <4B142061 DOT 6000200 AT cygwin DOT com> <8d7f7110911301717jbafbc2ci432817b1c713f1e6 AT mail DOT gmail DOT com> <20091201013022 DOT GA2336 AT KCJs-Computer> <4B147423 DOT 1050404 AT bopp DOT net>
MIME-Version: 1.0
In-Reply-To: <4B147423.1050404@bopp.net>
User-Agent: Mutt/1.5.18 (2008-05-17)
From: rp AT win DOT tue DOT nl (Reinier Post)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Mon, Nov 30, 2009 at 07:40:51PM -0600, Jeremy Bopp wrote:

[...]

> If you want to see the Windows PATH setting unmolested by Cygwin, you
> will either need to strip out the additions set by /etc/profile or avoid
> running under an environment modified by /etc/profile.

It doesn't add, actually - it replaces it.

A few weeks ago I got fed up with Cygwin not being able to find my
Windows executables and wrote a script to add all directories with
*.exe files to the $PATH.  (It runs overnight with cron.)
This leads to a strange effect: the resulting $PATH is so long (over 2800
chars) that, although it successfully locates many Windows executables,
attempts to run them fail with an error message:

% dot -h
/cygdrive/c/Program Files/Graphviz/bin/dot: Message too long.

Workaround:

% env - "`which dot`" -h

Other than that it works well.  (This is Cygwin 1.5.)

-- 
Reinier Post
TU Eindhoven

--
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