This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

1.3.2: Perl script called via system() uses Windows filenames


Hi,

I'm running cygwin 1.3.2 on Windows 2000.  I have one script that wants to
call another using system().  When I do this, the second script switches
into using Windows filenames.  Here is the  first script:

  #!/usr/bin/perl
  system("/home/Administrator/foo.pl");

and the second script:

  #!/usr/bin/perl
  print $0, "\n";

The output I get when I run /home/Administrator/foo.pl is:

  /home/Administrator/foo.pl

However, when I run the first script, I get this:

  C:\cygwin\home\Administrator\foo.pl


Thanks,

Brian




--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]