X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 	tests=AWL,BAYES_00,J_CHICKENPOX_43,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A48343F.6000304@tlinx.org>
Date: Sun, 28 Jun 2009 20:25:51 -0700
From: Linda Walsh <cygwin@tlinx.org>
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Bug: /registry file system doesn't return len of default value of  keys
X-Stationery: 0.4.9
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Hi all,

I've run into some weird behavior from the file-utils (grep, file) but I
believe they may all be caused by the same root problem.

The /prog/registry filesystem doesn't return the length of the 'default'
value (often a string).


Under /proc/registry/HKEY_CLASSES_ROOT/
I was grep'ing through   ".txt/@"  which I expected to find
the string "txtfile", but, I think because it is 0 len, grep 
thinks it is a binary file (which I have my grep set to ignore).


Known bug?  Is it in the queue to be fixed someday? :-)

Now that I know about it, I know how to work around it, so
it's not urgent, but it is a bit of a problem with the normal
cygwin utils when they see a '0' len, even though it has
non-zero length content...

Linda


--
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

