delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/02/16/13:08:13

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,TW_YG
X-Spam-Check-By: sourceware.org
X-Eon-Dm: dm0205
X-Eon-Sig: AQMb1uJNXBJ6PtUiUAIAAAAB,d079cbaf57cd1231c4a6a546f1d8e1b1
Message-ID: <4D5C127D.40401@member.fsf.org>
Date: Wed, 16 Feb 2011 10:07:57 -0800
From: L Anderson <lowella AT member DOT fsf DOT org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.16) Gecko/20101123 SeaMonkey/2.0.11
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: echo $(cygcheck...) oddity
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000 definitions=main-1102160101
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019