This is the mail archive of the
mailing list for the Cygwin project.
regtool quoting variations on output
- From: luke dot kendall at cisra dot canon dot com dot au
- To: cygwin at cygwin dot com
- Date: Tue, 21 Sep 2004 17:28:22 +1000 (EST)
- Subject: regtool quoting variations on output
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
"stout" is Windows XP, "percy" is Windows 2000.
$ regtool -q get "\\HKLM\\SOFTWARE\\Microsoft\\Office\\10.0\\Word\\InstallRoot\
C:\Program Files\Microsoft Office\Office10\
$ regtool -q get "\\HKLM\\SOFTWARE\\Microsoft\\Office\\8.0\\Word\\InstallRoot\\
"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?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html