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: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com From: Chris Faylor Date: Sat, 15 Jul 2000 23:45:10 -0400 To: cygapp Subject: Re: two questions Message-ID: <20000715234510.A8476@cygnus.com> Mail-Followup-To: cygapp References: <004801bfeed8$5a75f610$f7c723cb AT lifelesswks> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <004801bfeed8$5a75f610$f7c723cb@lifelesswks>; from robert.collins@itdomain.com.au on Sun, Jul 16, 2000 at 01:45:56PM +1000 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