This is the mail archive of the
cygwin
mailing list for the Cygwin project.
echo $(cygcheck...) oddity
- From: L Anderson <lowella at member dot fsf dot org>
- To: cygwin at cygwin dot com
- Date: Wed, 16 Feb 2011 10:07:57 -0800
- Subject: echo $(cygcheck...) oddity
Could the following signal a possible string buffering problem?
Both:
cygcheck /bin/sh.exe
and
echo "$(cygcheck /bin/sh.exe)"
yield the same output:
E:\cygwin\bin\sh.exe
E:\cygwin\bin\cygwin1.dll
C:\WINDOWS\system32\ADVAPI32.DLL
C:\WINDOWS\system32\KERNEL32.dll
C:\WINDOWS\system32\ntdll.dll
C:\WINDOWS\system32\RPCRT4.dll
C:\WINDOWS\system32\Secur32.dll
E:\cygwin\bin\cygintl-8.dll
E:\cygwin\bin\cygiconv-2.dll
E:\cygwin\bin\cyggcc_s-1.dll
E:\cygwin\bin\cygreadline7.dll
E:\cygwin\bin\cygncursesw-10.dll
C:\WINDOWS\system32\USER32.dll
C:\WINDOWS\system32\GDI32.dll
However,when I do
echo $(cygcheck /bin/sh.exe) I get:
C:\WINDOWS\system32\GDI32.dlllll
^^^
^^^
which clearly is unexpected.
LA
--
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