#! /bin/bash

if [ $SHELL == "/bin/sh" ]
then
  start rxvt -e /bin/bash -c "installsh"
  exit
fi

echo You must exit all MSYS sessions except this one.
echo -n Press return when ready.
read a

echo Moving /bin/sh.exe to /bin/sh-old.exe
mv /bin/sh.exe /bin/sh-old.exe
echo Copying /bin/bash.exe to /bin/sh.exe
cp /bin/bash.exe /bin/sh.exe

echo -n Press return to restart MSYS.
read a
start /msys.bat
