Re: bash command substitution

2017-10-02 Thread Vukovics Mihály
Hello, it was compiled with mingw, and the \r was the issue, thanks! --- Köszönettel: Vukovics Mihály On 2017-10-01 19:54, Brian Inglis wrote: On 2017-10-01 00:40, Vukovics Mihaly wrote: I just wanted to use my bash script written in Debian 8 in cygwin(latest, win10 64bit), but does not work

Re: bash command substitution

2017-10-01 Thread Brian Inglis
On 2017-10-01 00:40, Vukovics Mihaly wrote: > I just wanted to use my bash script written in Debian 8 in cygwin(latest, > win10 > 64bit), but does not work. > At a specific line there is a command substitution trying to get result from > ffprobe: > VHEIGHT=$(ffprobe -v error -show_entries stream=w

Re: bash command substitution

2017-10-01 Thread Wouter van Doorn
Try the following: echo $(echo hello | cat) If that remains empty, (it should of course result in 'hello') you're suffering from the same problem I have. And no, I did not get it resolved. In which case I'd be elated if you could get anyone interested in finding a solution! If this happens to yo

Re: bash command substitution

2017-10-01 Thread Steven Penny
On Sun, 1 Oct 2017 08:40:51, Vukovics Mihaly wrote: VHEIGHT=$(ffprobe -v error -show_entries stream=width,height -of default=noprint_wrappers=1 ${OLDFILE} | grep "height" | cut -f2 -d'=') For debugging purpose the same command is executed without putting the result into a variable, and works!

Re: bash command substitution

2017-10-01 Thread Marco Atzeri
On 01/10/2017 08:40, Vukovics Mihaly wrote: Hello All, I just wanted to use my bash script written in Debian 8 in cygwin(latest, win10 64bit), but does not work. At a specific line there is a command substitution trying to get result from ffprobe: VHEIGHT=$(ffprobe -v error -show_entries st

bash command substitution

2017-09-30 Thread Vukovics Mihaly
Hello All, I just wanted to use my bash script written in Debian 8 in cygwin(latest, win10 64bit), but does not work. At a specific line there is a command substitution trying to get result from ffprobe: VHEIGHT=$(ffprobe -v error -show_entries stream=width,height -of default=noprint_wrappe

Re: Broken bash command substitution

2016-11-26 Thread L. A. Walsh
Gerrit Haase wrote: 2016-11-24 17:25 GMT+01:00 L. A. Walsh says: Tydus wrote: You didn't specify what version of bash you are running. Therefore he attached the cygcheck output which says: bash 4.3.46-7 --- Is that the same version as he's running on linux?

Re: Broken bash command substitution

2016-11-25 Thread Gerrit Haase
2016-11-24 17:25 GMT+01:00 L. A. Walsh says: > Tydus wrote: > > > You didn't specify what version of bash you are running. Therefore he attached the cygcheck output which says: bash 4.3.46-7 ;) Gerrit -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: Broken bash command substitution

2016-11-24 Thread L. A. Walsh
Tydus wrote: Dear list, I use Cygwin64 for a long time and everything went well. However, after one setup.exe update, the command substitution (`foo`) is broken on bash. You didn't specify what version of bash you are running. Since here: $ ssh a-linux-server $ A=`echo 123 | cat`;

Broken bash command substitution

2016-11-24 Thread Tydus
Dear list, I use Cygwin64 for a long time and everything went well. However, after one setup.exe update, the command substitution (`foo`) is broken on bash. How to reproduce: $ echo "===`echo 123`===" ===123=== $ echo "===`echo 123 | cat`===" ===123=== $ A=`echo 123`; echo "===$A===" ===123==