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
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
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
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
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
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
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
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
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
9 matches
Mail list logo