Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <2C08D4EECBDED41184BB00D0B74733420473F0CD@cf-bay-exch-03.cacheflow.com> From: "Karr, David" To: "'cygwin AT cygwin DOT com'" Subject: Slightly different interpretation of $PATH between Bash and Perl Date: Wed, 26 Sep 2001 16:11:42 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" I have a Bash script in $HOME/bin that runs "$(basename $0)" (essentially). This works fine when I run it from Bash (1.3.2). I also have a Perl script, run from Cygwin Perl, that uses the "system()" command to run the same script. This executes slightly differently from the previous. In particular, "$0" in the script, when run directly from Bash is "/home/david.karr/bin/". However, "$0" in the script, when I run it from Cygwin Perl, is "c:\cygwin\home\david.karr\bin\". My workaround for this is to always retrieve '$(cygpath -u $0}', but I'd like to understand a little better why this is happening. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/