tee: 'standard output': Permission denied
Andry
andry@inbox.ru
Wed Dec 30 02:24:02 GMT 2020
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.
More information about the Cygwin
mailing list