withlib.in: Fix bashism (`export VAR=VALUE').
[preload-hacks] / withlib.in
index 47e19d1..51d6a87 100644 (file)
@@ -1,6 +1,6 @@
 #! /bin/sh
 
 set -e
-export LD_PRELOAD=$LD_PRELOAD${LD_PRELOAD+ }@lib@.so
+LD_PRELOAD=${LD_PRELOAD+$LD_PRELOAD }@lib@.so; export LD_PRELOAD
 [ $# -eq 0 ] && set -- "${SHELL-/bin/sh}"
 exec "$@"