delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/22/18:36:52

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Fri, 22 Jun 2001 18:34:10 -0400 (EDT)
From: Brian Jepson <bjepson AT oreilly DOT com>
X-Sender: bjepson AT sol DOT east DOT ora DOT com
To: cygwin AT cygwin DOT com
Subject: 1.3.2: Perl script called via system() uses Windows filenames
Message-ID: <Pine.GSO.4.21.0106221802070.21261-100000@sol.east.ora.com>
MIME-Version: 1.0

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

- Raw text -


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