Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: X-Sender: linq936 AT hotmail DOT com From: "lin q" To: cygwin AT cygwin DOT com Subject: can not find valid cygwin path Date: Tue, 01 Nov 2005 10:04:01 -0700 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-IsSubscribed: yes Hi, I have the latest cygwin installed on WinXP SP1. It works fine in general until I try to run some program today. It is really weired, the program requiring setting up some environment viriables, I guess iniside its code it tries to find some data based on that variable setting. Anyway, I do it something like this in my script, export PROG_ENV=/cygdrive/c/prog export PATH=$PROG_ENV/bin/nt:$PATH echo $PATH $PROG_ENV/bin/nt/prog.exe Then I source this script in cygwin, but I get such error, The PROG_ENV directory "/cygdrive/c/prog" does not exist. The PROG_ENV environment variable does not point to any directories. Current setting is PROG_ENV="/cygdrive/c/prog". But if I `ls $PROG_ENV`, the directory is there! And `cd $PROG_ENV` works also. I wonder why the valid cygwin can not be taken. Another thing I find is if I change the BASH script to DOS script and run it directly from dos, then everything is ok, namingly here is the DOS scipt, set PROG_ENV=c:\prog set PATH=%PROG_ENV%\bin\nt;%PATH% %PROG_ENV%\bin\nt\prog.exe Any suggestion? _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ -- 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/