So, calling the perl script explicitly as in %ACTIVESTATEPERL%\bin\perl.exe
solves my issue in the cygwin environment. On 4/27/07, Nishi <[EMAIL PROTECTED]> wrote:
So, I see the below output (that is diff than yours) when i run from cygwin. If I run from the cmd prompt, I see the same output as yours. On 4/27/07, Nishi <[EMAIL PROTECTED]> wrote: > > > This is what i see > > c:\foo\bar\baz.txt -> c:\foo\bar\baz.txt > > /cygdrive/c/foo/bar/baz.txt -> baz.txt > > which is different from your output. > > > > On 4/27/07, Chas Owens <[EMAIL PROTECTED] > wrote: > > > > On 4/27/07, Nishi < [EMAIL PROTECTED]> wrote: > > > The issue is when i use cygwin Perl. > > > > > > > And the specific issue is what? I have just installed cygwin on an XP > > box and wrote this script: > > > > #!/usr/bin/perl > > > > use strict; > > use warnings; > > use File::Basename; > > > > for my $path (qw{c:\foo\bar\baz.txt /cygdrive/c/foo/bar/baz.txt}) { > > print "$path -> ", basename($path), "\n"; > > } > > > > and the output is > > > > c:\foo\bar\baz.txt -> baz.txt > > /cygdrive/c/foo/bar/baz.txt -> baz.txt > > > >