Re: issue when piping from a windows program

2023-04-12 Thread Takashi Yano via Cygwin
On Tue, 11 Apr 2023 09:15:03 +0200 Leonid Mironov wrote: > I am trying to feed the output of wmic.exe - a windows console program, to > cygwin bash script. > wmic.exe produces UTF16LE output with BOM and CR/LFs, so I am using dos2unix > to convert it. > The problem is that when I write

Re: issue when piping from a windows program

2023-04-12 Thread Brian Inglis via Cygwin
On 2023-04-11 08:43, Andrey Repin via Cygwin wrote: Greetings, Leonid Mironov! I am trying to feed the output of wmic.exe - a windows console program, to cygwin bash script. wmic.exe produces UTF16LE output with BOM and CR/LFs, so I am using dos2unix to convert it. The problem is that when I

Re: issue when piping from a windows program

2023-04-11 Thread Andrey Repin via Cygwin
Greetings, Leonid Mironov! > I am trying to feed the output of wmic.exe - a windows console program, to > cygwin bash script. > wmic.exe produces UTF16LE output with BOM and CR/LFs, so I am using dos2unix > to convert it. > The problem is that when I write wmic.exe output to a file and then use

Re: issue when piping from a windows program

2023-04-11 Thread Marco Atzeri via Cygwin
On 11.04.2023 09:15, Leonid Mironov via Cygwin wrote: I am trying to feed the output of wmic.exe - a windows console program, to cygwin bash script. wmic.exe produces UTF16LE output with BOM and CR/LFs, so I am using dos2unix to convert it. The problem is that when I write wmic.exe output to a

issue when piping from a windows program

2023-04-11 Thread Leonid Mironov via Cygwin
I am trying to feed the output of wmic.exe - a windows console program, to cygwin bash script. wmic.exe produces UTF16LE output with BOM and CR/LFs, so I am using dos2unix to convert it. The problem is that when I write wmic.exe output to a file and then use dos2unix to convert this file I