Moore’s Law of computing is very debatable nowadays, but one tech-related concept that’s absolutely NOT debatable is that everyone learning any scripting or programming language should start with the classic “Hello World” example. And you know what? LearnLinuxTV is a sucker for tradition. So in this episode, you’ll write your very own Hello World script in Bash!
Continue the discussion at community.learnlinux.tv
1 more reply
It’s not mandatory when you run a script from Bash itself - but in all other cases it’s needed. Consider the following other scenarios, where you would always want to include a shebang in your scripts:
And I’m sure there are other scenarios as well, where this is relevant. As soon as you enter the server/automation space, there is better reason to always include the shebang.