You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found the following shebang formatting in lesson 04:
#! /bin/bash
The problem is the space between #! and the command. I know that it’s a valid shebang, technically, but it’s very uncommon and students should not be taught to write it like that.
The text was updated successfully, but these errors were encountered:
Although I have always written it without a space I could not find any relevant reason to prefer one way over another. I say show students both and let them decide.
Sry, I forgot to answer. I don’t know about any relevant standard. However, I’m very active in FOSS world and maintain hundreds of packages in Alpine Linux, so I’ve seen really a lot of scripts with shebangs in my life. I can tell you that shebang with a space is extremely rare (like one in a thousand rare).
Sure, you can show students both, but you must/should choose one or another in your examples.
I found the following shebang formatting in lesson 04:
#! /bin/bash
The problem is the space between
#!
and the command. I know that it’s a valid shebang, technically, but it’s very uncommon and students should not be taught to write it like that.The text was updated successfully, but these errors were encountered: