regtool quoting variations on output

luke.kendall@cisra.canon.com.au luke.kendall@cisra.canon.com.au
Tue Sep 21 07:59:00 GMT 2004


A script broke today because regtool reported a key's value with
extra double quotes around it.

I also observed that whether or not a path was reported with a trailing
"\" varied from one machine to the other.  Both were using regtool ver
1.8.

"stout" is Windows XP, "percy" is Windows 2000.

luke@STOUT /cygdrive/x/cygnus/cisra
$ regtool -q get "\\HKLM\\SOFTWARE\\Microsoft\\Office\\10.0\\Word\\InstallRoot\
\Path"
C:\Program Files\Microsoft Office\Office10\


mdias@PERCY ~
$ regtool -q get "\\HKLM\\SOFTWARE\\Microsoft\\Office\\8.0\\Word\\InstallRoot\\
Path"
"C:\Program Files\Microsoft Office\Office"

Visual inspection of the above key in regedit on percy (W2K) showed that
its value had no double-quotes in the registry.  Visual inspection on
stout (WXP) also showed no double-quotes around the path (though it did
have the trailing backslash, just as regtool reported).

I can change my script to pipe the output from regtool through
sed 's/^"//;s/"$//', but that seems like a kludge to me.

Does anyone have any idea what might be going on here?

luke


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



More information about the Cygwin mailing list