r/shell • • Sep 23 '24

why do bash scripts start with #!

Hi, I'm just curious: what does this mean?

I know it's telling the machine to use bash, but like, why is it a "#!" for example? How/why was it decided that way?

6 Upvotes

8 comments sorted by

View all comments

Show parent comment

2

u/neilmoore Sep 24 '24

I still wonder what ever possessed our Reddit overlords to use entirely different Markdown parsers in the three different interfaces (old, new, and mobile). Especially since Reddit co-founder Aaron Swartz (may he rest in peace) was influential in the original design of Markdown.