This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Broken bash command substitution



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===
$ A=`echo 123 | cat`; echo "===$A===" #<-- This one breaks (returned empty string)
======
$ A=`echo 123 | cat`;
$ echo "===$A==="
===123===
$ A=$(echo 123 | cat); echo "===$A==="
======
$ dash
$ A=`echo 123 | cat`; echo "===$A===" #<-- Did not occur on other shells
===123===
$ exit
$ ash
$ A=`echo 123 | cat`; echo "===$A==="
===123===
$ exit
$ ssh a-linux-server
$ A=`echo 123 | cat`; echo "===$A===" #<-- Linux doesn't have problem either
===123===
$ exit

This bug also occurs on another machine (win10 x64). And chere(1) is influenced by the bug and rendered unusable (ver 1.4 L613: KEY_ELEMENTS=`echo $1 | sed "s?/? ?g"`).


Anyway the cygcheck.log is attached. Additionally cygcheck complains about a cygheap base mismatch. This is a new-installed windows 7 x64 and I double confirmed there's only one cygwin1.dll on my computer.

2 [main] cygcheck (2556) C:\cygwin64\bin\cygcheck.exe: *** fatal error - cygheap base mismatch detected - 0x180302408/0x22D2408. This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin1.DLL.


I'm not sure if it is a bug or my configuration problem, and whether it is filed or not. Please help with it.


Best Regards,
Tydus

Attachment: cygcheck.out
Description: Text document

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]