delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/08/17:09:54

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Mon, 8 Jun 2009 23:09:33 +0200
Message-ID: <e01d8a50906081409j7403bf01k6ff87ba4229875fa@mail.gmail.com>
Subject: Bug in $PATH initialization?
From: Lennart Borgman <lennart DOT borgman AT gmail DOT com>
To: cygwin AT cygwin DOT com
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

I am trying to get "bash -i" to start up with $PATH having

   /usr/local/bin:/usr/bin:/bin

at the beginning. I believe I need to do this without any init file
running so I set the windows Path variable to contain the
corresponding windows directories first. So I set Path in cmd.exe with

  set Path=c:\cygwin\bin;%Path%
  set Path=c:\cygwin\usr\bin;%Path%
  set Path=c:\cygwin\usr\local\bin;%Path%

and then I do

  bash -i

However $PATH starts with

   /usr/local/bin:/usr/bin:/usr/bin

I thought the last dir above should be /bin, not /usr/bin.

Is this intentional or is it a bug. If it is intentional can I somehow
do what I want another way?

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

- Raw text -


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