-
Bug
-
Resolution: Fixed
-
P4
-
7u6
The test script verify_SB_keys.sh has a bug for checking file association.
The bug lies in the following line:
sActual="`reg query "HKEY_CLASSES_ROOT\\fxmlfile\\shell\\Open\\command" 2>/dev/null | \
grep "$sLeadString" | awk '{ for(i=3; i<=NF; i++) {print $i}}' | sed "s#\\\\\#/#g"`"
The command awk '{ for(i=3; i<=NF; i++) {print $i}}' makes the output to have separate new lines:
for instance, an example output looks like this:
"C:\Program
Files
(x86)\Oracle\JavaFX
Scene
Builder
1.0\bin\scenebuilder.exe"
However, the expected output should be like this:
C:/Program Files (x86)/Oracle/JavaFX Scene Builder 1.0/bin/scenebuilder.exe
Similarly, the code that checks for Scene Builder path key has the same issue.
Here is the code snippet:
sActual="`reg query "HKLM\\Software${sWowKey}\\Oracle\\JavaFX Scene Builder\\\\$sVersion" 2>/dev/null | \
grep Path | awk '{ for(i=3; i<=NF; i++) {print $i}}' | sed "s#\\\\\#/#g"`"
The bug lies in the following line:
sActual="`reg query "HKEY_CLASSES_ROOT\\fxmlfile\\shell\\Open\\command" 2>/dev/null | \
grep "$sLeadString" | awk '{ for(i=3; i<=NF; i++) {print $i}}' | sed "s#\\\\\#/#g"`"
The command awk '{ for(i=3; i<=NF; i++) {print $i}}' makes the output to have separate new lines:
for instance, an example output looks like this:
"C:\Program
Files
(x86)\Oracle\JavaFX
Scene
Builder
1.0\bin\scenebuilder.exe"
However, the expected output should be like this:
C:/Program Files (x86)/Oracle/JavaFX Scene Builder 1.0/bin/scenebuilder.exe
Similarly, the code that checks for Scene Builder path key has the same issue.
Here is the code snippet:
sActual="`reg query "HKLM\\Software${sWowKey}\\Oracle\\JavaFX Scene Builder\\\\$sVersion" 2>/dev/null | \
grep Path | awk '{ for(i=3; i<=NF; i++) {print $i}}' | sed "s#\\\\\#/#g"`"