> From: Dale Stimson > Sent: Thursday, May 13, 2010 14:13 > To: cygwin@cygwin.com > Subject: Reading /proc/registry/... returns extra char > > Reading a file under /proc/registry returns an extra character at the > end, > which appears to be the null character. > > This has happened for every registry entry that I have tried. Here is > one in particular: > -------------------------------- > $ cat >a.dat > /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Syst > emBootDevice ...
Not only that, but if you pipe that output to another process, you (or should I say "I") get a stack dump: Cygwin> ls Cygwin> cat /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/SystemBootDevice multi(0)disk(0)rdisk(0)partition(2)Cygwin> Cygwin> ls Cygwin> cat /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/SystemBootDevice | head multi(0)disk(0)rdisk(0)partition(2)Cygwin> Cygwin> ls cat.exe.stackdump Cygwin> It seems to be reliably repeatable. --Ken Nells