Skip to content

Commit

Permalink
Make Linux hammerdb executable work with spaces in PATH
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JelteF committed Dec 15, 2021
1 parent e501ea4 commit 034a8be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hammerdb
Original file line number Diff line number Diff line change
@@ -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+"$@"}
# \
Expand Down

0 comments on commit 034a8be

Please sign in to comment.