Den 2010-10-31 02:42 skrev Christopher Faylor: > [Apologies for previously sending this as private email. Don't know how > that happened] > On Sun, Oct 31, 2010 at 03:37:31AM +0300, Dmitry Potapov wrote: >> Hi, >> >> The easiest way to demonstrate the problem is to run the following shell >> script: >> >> ---- >8 --- >> regtool -m set /HKEY_LOCAL_MACHINE/SOFTWARE/Test 1234 >> expected="31 00 32 00 33 00 34 00 00 00 00 00" >> actual="`regtool get -b /HKEY_LOCAL_MACHINE/SOFTWARE/Test`" >> >> if [ "$actual" != "$expected" ]; then >> echo FAILED >> else >> echo OK >> fi >> ---- >8 --- > > I've checked this in but isn't there one too many trailing "00 00"s in > the above, i.e., shouldn't it be "n" rather than "n + 1"?
One terminator for the string, and one for the multi-string. I have double terminators for natively created multi-strings. Cheers, Peter
