diff options
author | Tom Willemse | 2022-03-03 01:17:04 -0800 |
---|---|---|
committer | Tom Willemse | 2022-03-03 01:17:04 -0800 |
commit | d344d290c4f9bae23467db3aa40df17521c725e3 (patch) | |
tree | 2b8da3be82a3e1d86379f56cf00c30387caa6cff | |
parent | 9befbb9c7940c8acf62de947788a0c81e4eb9691 (diff) | |
download | count-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-x | count-emails | 6 |
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")) |