Why is "shebang" called "shebang"?
Solution 1
Another interesting name derivation from here.
Among UNIX shell (user interface) users, a shebang is a term for the "#!" characters that must begin the first line of a script. In musical notation, a "#" is called a sharp and an exclamation point - "!" - is sometimes referred to as a bang. Thus, shebang becomes a shortening of sharp-bang
Solution 2
Taken from Wikipedia (gasp!):
The name shebang for the distinctive two characters comes from an inexact contraction of SHArp bang or haSH bang, referring to the two typical Unix names for them. Another theory on the sh in shebang is that it is from the default shell sh, usually invoked with shebang.[18][19] This usage was current by December 1987,[20] and probably earlier.
Solution 3
'Historical' Note: I'm 68 years old and work with IBM Mainframes since 1.968 [yes, System /360]. I recall that we were used to that word, long before Linux and "#!" things. It used to appear on Comments of written Code, and we 'mimicked' them. The meaning of shebang, as 'all these things', we translated in Portuguese as "esta bagaça" [yep, no good meaning...].
bagaça is what you get, other than the liquid syrup, when you smash sugar cane.
Solution 4
From TLDP (I think this is more accurate than Wikipedia):
[1] More commonly seen in the literature as she-bang or sh-bang. This derives from the concatenation of the tokens sharp (#) and bang (!).
http://tldp.org/LDP/abs/html/sha-bang.html#FTN.AEN205
Solution 5
The word "shebang" was already in existence (wiktionary) - while it bears no connection in meaning, it's not hard to imagine a new phrase 'hash bang' being whimsically renamed because of its resemblance to an existing word.
Related videos on Youtube
Tim
Elitists are oppressive, anti-intellectual, ultra-conservative, and cancerous to the society, environment, and humanity. Please help make Stack Exchange a better place. Expose elite supremacy, elitist brutality, and moderation injustice to https://stackoverflow.com/contact (complicit community managers), in comments, to meta, outside Stack Exchange, and by legal actions. Push back and don't let them normalize their behaviors. Changes always happen from the bottom up. Thank you very much! Just a curious self learner. Almost always upvote replies. Thanks for enlightenment! Meanwhile, Corruption and abuses have been rampantly coming from elitists. Supportive comments have been removed and attacks are kept to control the direction of discourse. Outright vicious comments have been removed only to conceal atrocities. Systematic discrimination has been made into policies. Countless users have been harassed, persecuted, and suffocated. Q&A sites are for everyone to learn and grow, not for elitists to indulge abusive oppression, and cover up for each other. https://softwareengineering.stackexchange.com/posts/419086/revisions https://math.meta.stackexchange.com/q/32539/ (https://i.stack.imgur.com/4knYh.png) and https://math.meta.stackexchange.com/q/32548/ (https://i.stack.imgur.com/9gaZ2.png) https://meta.stackexchange.com/posts/353417/timeline (The moderators defended continuous harassment comments showing no reading and understanding of my post) https://cs.stackexchange.com/posts/125651/timeline (a PLT academic had trouble with the books I am reading and disparaged my self learning posts, and a moderator with long abusive history added more insults.) https://stackoverflow.com/posts/61679659/revisions (homework libels) Much more that have happened.
Updated on September 18, 2022Comments
-
Tim over 1 year
Does "shebang" mean "bang she"?
Why not "hebang" as "bang he"?-
Admin almost 10 yearsThere doesn't seem to be a single source, so I am not sure this question can be answered. There are multiple plausible interpretations out there but it is impossible to determine which is back-formation and which is the original source. The jargon file and wikipedia entries mention several possible explanations.
-
Admin almost 10 years
-
Admin over 9 years(ha)shbang perhaps?
-
Admin over 3 years@AmirHossein I saw you are the best developer in "Backend: Creating restful backend services that scale to millions" and "Advetising: Able to create marketing campaigns and post millions of email that converts. Also can create content that boosts SEO and I can manage all your online presense." I was wondering what specific technologies I could study for the two areas? Are there books or online resources which have helped you or you could recommend? Thanks.
-
-
Tim almost 10 years(1) What does "bang" mean? (2) Still just "sh" not "she". why not "shbang"?
-
dg99 almost 10 years(1) "bang" is an onomatopoeic interpretation of "!". (2) As the Wikipedia page shows, it's also spelled "sha-bang".
-
jw013 almost 10 years@Tim shb is not really a natural-sounding consonant in English, so some vowel is required to separate the sh from the b.
-
Gilles 'SO- stop being evil' almost 10 yearsThis appears in the Wikipedia article as well, complete with dmr saying he didn't invent the name.