Make Linux/Unix Script Portable With /usr/bin/evn As a Shebang https://www.cyberciti.biz/tips/finding-bash-perl-python-portably-using-env.html
Conversation
Notices
-
nixCraft 🐧 (nixcraft@mastodon.social)'s status on Thursday, 05-Dec-2024 15:34:19 JST nixCraft 🐧
-
therook (therook@mastodon.social)'s status on Thursday, 05-Dec-2024 15:56:16 JST therook
@nixCraft can not agree more
-
nixCraft 🐧 (nixcraft@mastodon.social)'s status on Thursday, 05-Dec-2024 16:18:50 JST nixCraft 🐧
@gboussard Fixed it. sorry about that.
-
Gwenn (gboussard@mamot.fr)'s status on Thursday, 05-Dec-2024 16:18:51 JST Gwenn
-
hansvschoot (hansvschoot@mastodon.social)'s status on Thursday, 05-Dec-2024 16:20:44 JST hansvschoot
@nixCraft next article: break every portable script with "sudo rm /usr/bin/env"
-
nixCraft 🐧 (nixcraft@mastodon.social)'s status on Thursday, 05-Dec-2024 16:59:10 JST nixCraft 🐧
@icing @gboussard thanks for the comment. I'm still using your Apache module for TLS certificate. it just works. So I wanted to thank you for that.
-
Stefan Eissing (icing@chaos.social)'s status on Thursday, 05-Dec-2024 16:59:11 JST Stefan Eissing
@gboussard @nixCraft ‚evn‘ is the one with the most portable behaviour everywhere, eg it won‘t work nowhere. 💁🏻♂️
-
nixCraft 🐧 (nixcraft@mastodon.social)'s status on Thursday, 05-Dec-2024 16:59:57 JST nixCraft 🐧
@phaysis LOL. i believe you
-
ShawnT 🐀 (phaysis@mastodon.coffee)'s status on Thursday, 05-Dec-2024 16:59:58 JST ShawnT 🐀
@nixCraft
EXCEPT when your IT org pushes some random-ass NFS mount earlier in your $PATH and puts some random-ass bash there, and suddenly you're dealing with some random-ass issues. Ask me how I know. -
Florian Xaver (wosrediinanatour@mastodon.social)'s status on Thursday, 05-Dec-2024 17:02:18 JST Florian Xaver
@nixCraft s/than/then/
-
Toadofsky (toadofsky@mastodon.social)'s status on Thursday, 05-Dec-2024 18:00:20 JST Toadofsky
@nixCraft I don't understand the meme.
-
covracer (covracer@mastodon.social)'s status on Thursday, 05-Dec-2024 21:47:56 JST covracer
@nixCraft exactly which systems have /usr/bin/env bash but not /bin/bash?
-
Pip Puzzle 🦋 (pippuzzle@mastodon.social)'s status on Friday, 06-Dec-2024 01:32:02 JST Pip Puzzle 🦋
@nixCraft Use a text macro program like AutoKey to bind this and you won't have to worry about remembering to do it either.
-