r/ProgrammerHumor • • Nov 06 '20

Meme Totally agree

Post image
52.1k Upvotes

474 comments sorted by

View all comments

Show parent comments

110

u/tndaris Nov 06 '20

60

u/GRAIN_DIV_20 Nov 07 '20

I hardly know her

9

u/iamacuteporcupine Nov 07 '20

We need gender equality!!!

Proceeds to make a language with hebangs !

2

u/DasSkelett Nov 07 '20

It's not a language feature, it's a kernel feature. You'll need to create a new kernel to do that (or get your code into an existing kernel, good luck).

2

u/iamacuteporcupine Nov 07 '20

Basically bash, if I am not wrong, is it?

4

u/DasSkelett Nov 07 '20

No, Bash is not a kernel. Bash is a shell, a userspace software.

You'd need to get your code into Linux, Windows, XNU (macOS), or the BSDs.

Bash and other shells ignore shebangs because they start with a #, which, just like Python, denotes a comment.

Only when you ask the kernel to execute a script file, it'll see the #! that shebangs start with, read the path afterwards, then launch the program at that path and pass it the script location as parameter.

3

u/iamacuteporcupine Nov 07 '20

Okay, understood now.

3

u/jaerie Nov 07 '20

I bang

You bang

He bang

Shebang

2

u/PM-ME-YOUR-HANDBRA Nov 07 '20

William Hung Intensifies