From: Infidel - <cod...@ho...> - 2002-08-29 02:54:08
|
>From: Dave Brondsema <bro...@ya...> >To: Luke Dunstan <cod...@ho...>, >min...@li... >Subject: Re: [Mingw-msys] posix and windows paths >Date: Wed, 28 Aug 2002 19:46:31 -0700 (PDT) > >--- Luke Dunstan <cod...@ho...> wrote: > > > > ----- Original Message ----- > > From: "Dave Brondsema" <bro...@ya...> > > To: <min...@li...> > > Sent: Thursday, August 29, 2002 10:10 AM > > Subject: [Mingw-msys] posix and windows paths > > > > > > > > Backslashes have a special meaning to the bash shell. The > > correct way in > > MSYS is: > > > > cat /d/msys/1.0/t/test.sh > > > > Or: > > > > cat d:/msys/1.0/t/test.sh > > > >Will this type of path work for all situations? It seems that >it's the only possibility for me. /d/msys/1.0/t/test.sh won't >work in the final executable outside of msys and >d:\\msys\\1.0\\t\\test.sh requires changing \ to \\ under >several conditions. > >The only possibility that comes to mind is `pwd`. It returns a >/d/msys/ style path unless the -W parameter is passed. BTW, is >this -W parameter available in msys only? Its hard to say unless you explain exactly what you are trying to do. Are you hard-coding a path in the source code for opening a file? Are you using system() or something similar to execute commands from your program? Or are you just trying to pass an argument to your program from the MSYS command line? > > > > Or: > > > > cat d:\\msys\\1.0\\t\\test.sh > > > > > Thanks. > > > > > > P.S. > > > MINGW32_NT-5.1 DPB2 1.0.8(0.46/3/2) 2002-07-19 13:29 i686 > > unknown > > > > > > ===== > > > Dave Brondsema > > > da...@br... > > > http://www.brondsema.net - personal > > > http://www.splike.com - programming > > > > Luke Dunstan > > > > >===== >Dave Brondsema >da...@br... >http://www.brondsema.net - personal >http://www.splike.com - programming > Luke Dunstan _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx |