bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] #!apl


From: Hudson Flavio Meneses Lacerda
Subject: [Bug-apl] #!apl
Date: Mon, 20 Aug 2018 22:34:56 -0300

Hi.

Some of my scripts use `#!/usr/bin/apl --script` (from Debian), but now
I am using SVN, so I should use `#!/usr/local/bin/apl --script`. So, I
need to change the scripts, that may be incompatible with
different environments…

I have tried:

#!/usr/bin/env apl
#!apl --script
#!/usr/bin/apl --script
#!/usr/local/bin/apl --script

So far, the best solution I could find (so that I do not need to
change the files in the future) is this file header:

----------------------------------------------------
#!
true ← ~false ← 0 ⍝; exec apl --script "$0" "$@"
----------------------------------------------------

Are there any better solutions?

Thanks,
Hudson







reply via email to

[Prev in Thread] Current Thread [Next in Thread]