ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2000/07/16/00:13:12

Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com
Message-ID: <004e01bfeedc$defe8060$f7c723cb@lifelesswks>
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: "Chris Faylor" <cgf AT cygnus DOT com>,
"cygapp" <cygwin-apps AT sourceware DOT cygnus DOT com>
References: <004801bfeed8$5a75f610$f7c723cb AT lifelesswks> <20000715234510 DOT A8476 AT cygnus DOT com>
Subject: Re: two questions
Date: Sun, 16 Jul 2000 14:18:16 +1000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700

exec("C:/cygwin/usr/local/program.exe") fails
exec("C:\\cygwin\usr\local\program.exe") works (\\ c-style escaped)



----- Original Message -----
From: "Chris Faylor" <cgf AT cygnus DOT com>
To: "cygapp" <cygwin-apps AT sourceware DOT cygnus DOT com>
Sent: Sunday, July 16, 2000 1:45 PM
Subject: Re: two questions


> On Sun, Jul 16, 2000 at 01:45:56PM +1000, Robert Collins wrote:
> >1)Start|run, c:\cygwin\usr\local\program.exe
> >2)start|run, cmd (running win2k). then (from any drive)
> >"c:\cygwin\usr\local\program.exe"
> >
> >in 1, argv[0] is C:/cygwin/usr/local/program.exe
> >in 2, argv[0] is /usr/local/program.exe
> >
> >Note that bash was not the shell in 2! I'm quite happy to code around
this
> >myself, but if someone wanted to provide a pointer as to where I should
> >place it I'm happy to code around it for cygwin..
> >
> >The reason it's a issue, is that I want to call
exec(argv[0],newswitches),
> >which the above behaviour scuttles..
>
> Why?
>
> cgf
>

- Raw text -


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