Re: Re: tee: 'standard output': Permission denied

2020-12-29 Thread Andry via Cygwin
Hello Cygwin, >Weird. In my environment, chcp surely changes the code page. Are you using cygwin 3.2.0 snapshot by any chance? Yes, in 3.1.x (cygwin64) it works. But the issue with the mixed CR / CR+LF in the log is still persist. -- Problem reports: https://cygwin.com/problems.html

Re: Re: tee: 'standard output': Permission denied

2020-12-29 Thread Andry via Cygwin
Hello Cygwin, One more issue with the script is that the line returns forces at some points as CR. When run bash from cmd.exe - CR+LF -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsu

Re: Re: tee: 'standard output': Permission denied

2020-12-29 Thread Andry via Cygwin
Hello takashi, >or: >... > >cd "%PWD%" This does not work with long 260+ paths. -- 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-simp

tee: 'standard output': Permission denied

2020-12-29 Thread Andry via Cygwin
Hello Cygwin, >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

Re: Re: tee: 'standard output': Permission denied

2020-12-29 Thread Andry via Cygwin
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 properl

Re: Re: tee: 'standard output': Permission denied

2020-12-29 Thread Andry via Cygwin
Hello Kometes, >Cannot repro... Logfile is created correctly and commands and their output are logged there. The file encoding for the logfile is utf-8. The issue found in the Windows 7 x64. >A couple of things though:1. changing \ to / does not guarantee a valid Cygwin path. Not

tee: 'standard output': Permission denied

2020-12-29 Thread Andry via Cygwin
Hello Cygwin, >I am trying to change directory before run a bash shell with login: I've minimized to a minimal example to repro the issue: *run_cygwin_bash.bat*: ``` @echo off set CYGWIN_ROOT=... set PWD=... set PROJECT_LOG_FILE=... chcp.com 65001 >nul "%CYGWIN_ROOT%\bin

tee: 'standard output': Permission denied

2020-12-26 Thread Andry via Cygwin
Hello Cygwin, I am trying to change directory before run a bash shell with login: "%CYGWIN_ROOT%\bin\bash.exe" -c "{ cd ""%PWD:\=/%""; CHERE_INVOKING=. ""%CYGWIN_ROOT:\=/%/bin/bash.exe"" -l -i; } 2>&1 | ""%CYGWIN_ROOT:\=/%/bin/tee.exe"" -a ""%PROJECT_LOG_FILE:\=/%""" , where: CYGWIN_R

bash does not recognize valid windows path: `bash: 'c:\windows\system32\cmd.exe' /c echo 123: command not found`

2019-03-27 Thread Andry via cygwin
If try to replace it by: 'c:/windows\system32\cmd.exe' /c echo 123 Then all works fine. I've checked it in the old 1.5.x version and seems this bug is there for ages. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: h