Luke Dunstan wrote:
> ----- Original Message -----
> From: "Manu"
> To: "mingw-msys" <mingw-msys@...>
> Sent: Sunday, November 03, 2002 10:05 PM
> Subject: Re: [Mingw-msys] Invoking Bash
> > "Luke Dunstan" wrote:
> > > Perhaps you could try writing a batch file that invokes bash.
> > I copied msys.bat to bin/msys-here.bat with these changes:
> > rem if EXIST bin cd bin
> > start rxvt -sl 2500 -fg %FGCOLOR% -bg %BGCOLOR% -sr
> > -fn Courier-12 -tn msys -e /bin/sh --login -i -c "cd '%2' ; exec
> > Then, a registry key:
> > REGEDIT4
> > [HKEY_CLASSES_ROOT\Directory\shell\MsysHere]
> > @="&Msys Here"
> > [HKEY_CLASSES_ROOT\Directory\shell\MsysHere\command]
> > @="c:\\dev\\msys\\1.0\\bin\\msys-here.bat MINGW \"%1\""
> > This is inspired of "CygwinHere" powertoy. (Thanks Earnie BTW)
> > Then, there's still a problem to find rxvt.exe, sh.exe in the path, it
> > works only if I right-click in "c:/dev/msys/bin".
> That's because the current directory when running the batch file is set to
> the directory you clicked on, which is not how msys.bat normally runs. You
> should be able to just put "cd c:\dev\msys\1.0\bin" at the start of your
> batch file.
Yes, good idea.
> > Other problem, MSYS doesn't understand "c:\my_dir". MSYS would
> > understand "c:/my_dir", but this is not what Windows Explorer returns.
> Yes, backslashes are special characters in bash so they need to be doubled
> like in C, or enclosed in quotes. Maybe you could write a script/program
> that converts it like cygpath, or you could try a different version of
> here" like using environment vars and .profile.
Yes, I'll try to find a solution. I'd really like to use MSYS instead of DOS
BTW, there's another CygwinPromtHere which writes the directory to a temp
I think. Maybe an alternative.
PS: One trillion thanks for telling me about the 'specs' file in MinGW.