From 034a8beebeae288e6cd2c1f4f6fb6caf58fd4f41 Mon Sep 17 00:00:00 2001 From: Jelte Fennema Date: Wed, 15 Dec 2021 14:49:54 +0100 Subject: [PATCH] Make Linux hammerdb executable work with spaces in PATH If the $PATH variable contained spaces then it would result in an error like this: ``` ./hammerdb: 6: export: (x86)/Microsoft: bad variable name ``` By double quoting the usage of the existing $PATH variable bash handles this correctly. --- hammerdb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hammerdb b/hammerdb index c734ff57..57c049cf 100755 --- a/hammerdb +++ b/hammerdb @@ -1,9 +1,9 @@ #!/bin/sh ######################################################################## # \ -export LD_LIBRARY_PATH=./lib:$LD_LIBRARY_PATH +export LD_LIBRARY_PATH="./lib:$LD_LIBRARY_PATH" # \ -export PATH=./bin:$PATH +export PATH="./bin:$PATH" # \ exec wish8.6 -file $0 ${1+"$@"} # \