On Wed, 30 Dec 2020 05:24:02 +0300 Andry wrote: > Hello takashi, > > >I cannot reproducue your problem even with chcp.com 65001 and > >start "" cmd.exe ... > Seems this is a bug specifically for the Windows 7 x64. > > >By the way, using tee for logging the output is not good > >idea because stdout is not a tty. Due to this, less command > >does not work properly. > That is way to not break the cygwin colorization and I don't want > to start a script, all I want is to start an interactive console in > an arbitrary working directory. > > >Instead, I recommend: > > > >@echo off > >set CYGWIN_ROOT=... > >set PROJECT_LOG_FILE=... > > > >"%CYGWIN_ROOT%\bin\script" -q -a "%PROJECT_LOG_FILE%" -c "chcp.com 65001 > > >/dev/null 2>&1; /bin/bash --login" > That is not an equivalent, there is no directory to switch to BEFORE the > login.
I am not sure why you don't wat to use script, how about this then? @echo off set CYGWIN_ROOT=... set PWD=... set PROJECT_LOG_FILE=... "%CYGWIN_ROOT%\bin\script" -q -a "%PROJECT_LOG_FILE%" -c "chcp.com 65001 > /dev/null 2>&1; cd \"%PWD%\"; CHERE_INVOKING=1 /bin/bash --login" -- Takashi Yano <takashi.y...@nifty.ne.jp> -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple