mergetool: converting backslashes in kdiff3 path from Windows registry

Backslashes are converted to slashes right after the Windows
registry returned a path. This is needed to avoid problems
with shell expansion.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
This commit is contained in:
Steffen Prohaska
2007-08-13 08:04:14 +02:00
committed by Dmitry Kakurin
parent 56be985fe9
commit 65b356f555

View File

@@ -323,7 +323,7 @@ if test -z "$merge_tool" ; then
fi
fi
regentry="$(REG QUERY 'HKEY_LOCAL_MACHINE\SOFTWARE\KDiff3\diff-ext' 2>/dev/null)" && {
KDIFF3=$(echo "$regentry" | grep diffcommand | cut -f 3)
KDIFF3=$(echo "$regentry" | grep diffcommand | cut -f 3 | sed -e 's@\\@/@g')
KDIFF3SEPARATOR=
merge_tool_candidates="$merge_tool_candidates kdiff3"
}