Em 29/10/2012 04:04, "Andrew" <notes@shaw.ca> escreveu:
>
> Thanks for the reply, and the suggestions.
>
>  
>
> I tried installing MinGW into a separate directory on a completely different drive, and in a DOS shell I set my path to simply MinGW\msys\1.0\bin and still got the same results.. bash and sh both have "exit" on the prompt line, and then exit.
>
>  
>
> I also tried installing msyscore-1.0.11-bin into a separate directory and setting the path to simply msys\bin, and both sh and bash did the same, and running as per the msys.bat, like:
>
>  
>
> msys\bin\sh --login -i
>
>  
>
> I get "logout" on the prompt line and it exits. (if I actually run the msys.bat file the window appears and goes away too fast to read)
>
>  
>
> The only profile I could find, as you mentioned was the /etc/profile and didn't see anything obviously logging out or exiting, and both /msys/etc/profile (from msyscore-1.0.11-bin) and /MinGW/msys/1.0/etc/profile are identical.
>
>  
>
> In rxvt, I checked /home/andrew and the only file in there is .inputrc
>
>  
>
> However, from within rxvt I can run sh or bash and they load without exiting, and running "sh --login -i" works fine too.

Aren't you installing it through mingw-get? Also, I suppose you're running cmd.exe, so how about launching it from within rxvt, then bash? How about a sample script that writes to some file, what happens if you double click it, launch inside rxvt, and also from within cmd.exe? How about mintty?