aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-03-03 01:17:04 -0800
committerGravatar Tom Willemse2022-03-03 01:17:04 -0800
commite2747a706d0653220e70246c925a60cd55b612d1 (patch)
tree35738456bfdd6a05af3bf56b1274b197286a7b8b
parente132c83e53ddeabc5d3be86f8eab8576f9409954 (diff)
downloadhlwm-run-or-raise-e2747a706d0653220e70246c925a60cd55b612d1.tar.gz
hlwm-run-or-raise-e2747a706d0653220e70246c925a60cd55b612d1.zip
Update scsh file headers for shell scripts
Other file headers come with caveats: - ‘#!/usr/bin/scsh -s’ :: Now that scsh is installed through Guix, this is not where this file lives. - ‘#!/usr/bin/env -S scsh -s’ :: This doesn't work when we need to specify move arguments on the command line and need to use the meta-argument. ‘env -S scsh \’ doesn't work.
-rwxr-xr-xhlwm-run-or-raise5
1 files changed, 4 insertions, 1 deletions
diff --git a/hlwm-run-or-raise b/hlwm-run-or-raise
index 85d7389..0657088 100755
--- a/hlwm-run-or-raise
+++ b/hlwm-run-or-raise
@@ -1,4 +1,7 @@
-#!/usr/bin/scsh -s
+#!/usr/bin/env sh
+# # -*- mode: scheme; -*-
+IFS=" "
+exec scsh -s "$0" "$@"
!#
;; hlwm-run-or-raise --- Raise a window or start a new process
;;