This is the mail archive of the cygwin-apps@sources.redhat.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]

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

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