aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-03-03 01:17:04 -0800
committerGravatar Tom Willemse2022-03-03 01:17:04 -0800
commitd344d290c4f9bae23467db3aa40df17521c725e3 (patch)
tree2b8da3be82a3e1d86379f56cf00c30387caa6cff
parent9befbb9c7940c8acf62de947788a0c81e4eb9691 (diff)
downloadcount-emails-d344d290c4f9bae23467db3aa40df17521c725e3.tar.gz
count-emails-d344d290c4f9bae23467db3aa40df17521c725e3.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-xcount-emails6
1 files changed, 4 insertions, 2 deletions
diff --git a/count-emails b/count-emails
index 98a2573..787d69d 100755
--- a/count-emails
+++ b/count-emails
@@ -1,5 +1,7 @@
-#!/usr/bin/env -S scsh -s
-;; -*- mode: scheme; -*-
+#!/usr/bin/env sh
+# -*- mode: scheme; -*-
+IFS=" "
+exec scsh -s "$0" "$@"
!#
(define mail-root (string-append (getenv "HOME") "/documents/mail"))