954,173 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

shebang!

Everyone knows that usually every Perl program should start with something along the lines of "#!/usr/bin/perl" ... what's often called as "shebang." Anyone know why? I just read this cute post on google...

The exclamation point has been nicknamed "bang" for as long as I can remember. (Back in the uucp days, you would give an email address as "machine1, bang, machine2, bang, machine3, bang..." for "machine1! machine2!machine3!...")

The "#" sign has a knickname of "sharp" (The "#" is used in sheet music to mark "sharp" notes. In the old AT&T Unix, the default INTRUPT key was defined as the "sharp". I imagine that "sharp-bang" was shorted to "shebang" in later years. Shebang is a slang American expression which means the organization or "the works" as in "the whole shebang". qazwart@my-deja.com (qazwart@my-deja.com)

If anyone knows anything more, let me know. =)

samaru
a.k.a inscissor
Team Colleague
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
 

I always thought shebang was a corruption of "Hash - Bang" Where # is the hash mark. :roll: :idea: Just my .02

Trey

Newbie Poster
post since May 2012
Reputation Points:
Solved Threads:
 

And to think I'm probably the only gal on the block with a ThinkGeek.com #!/usr/bin/girl t-shirt!

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

Thinkgeek rules. They have some funny stuff. I don't think I could force myself to wear any of their t-shirts though... not my style. 8)

samaru
a.k.a inscissor
Team Colleague
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
 

Hey Dan ... this one is for u:

ya know the binary blanket I have from thinkGeek.com? Well I just took a looksie the other day and saw they have a matching binary pillow! I think I'm going to get it!

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

That blanket rules. I could carry around that blanket everywhere like Linus.

samaru
a.k.a inscissor
Team Colleague
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
 

if the first two bytes of an executable file are #! it is assumed to be a script with the following characters (after #!) as the interpreter. ! is a bang and "she" is just a souped up version of sh (it's pronounced /sh*-bang'/). SH is short for shell script.

mylogin
Newbie Poster
19 posts since Aug 2002
Reputation Points: 12
Solved Threads: 0
 
And to think I'm probably the only gal on the block with a ThinkGeek.com #!/usr/bin/girl t-shirt!


My chicks dig Linux shirt is nice...of course, my wife won't let me wear it anymore...but she didn't protest when we were engaged :P

TKS
Posting Pro in Training
470 posts since Jan 2004
Reputation Points: 108
Solved Threads: 18
 

i gots a t-shirt its the a penguin peeing on the a butterfly, i drew it took it to my local what is it, like printing shop, or something any way, they put it on a shirt for me its great ..

RC_Razor
Junior Poster
156 posts since Feb 2004
Reputation Points: 18
Solved Threads: 0
 
i gots a t-shirt its the a penguin peeing on the a butterfly, i drew it took it to my local what is it, like printing shop, or something any way, they put it on a shirt for me its great ..

I went to the city the other day and saw a nice collection of custom made t-shirts. I saw one of Tux holding the MS butterfly in a butterfly net. It was ok I guess.

I think my favorite was the one of Gates spraying mace on Tux. LOL. Truly priceless!

samaru
a.k.a inscissor
Team Colleague
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
 

i found some awesome backgrounds with the tux if i figure out how to add attachments on here ill post as attachments.(there backgrounds so i dont want to just post them )....:cheesy:

RC_Razor
Junior Poster
156 posts since Feb 2004
Reputation Points: 18
Solved Threads: 0
 

The exclamation point has been nicknamed "bang" for as long as I can remember. (Back in the uucp days, you would give an email address as "machine1, bang, machine2, bang, machine3, bang..." for "machine1! machine2!machine3!...")

In the UK, the bang is called a shriek -- I kind of like that.

GrimJack

GrimJack
Posting Maven
2,920 posts since Feb 2004
Reputation Points: 1,448
Solved Threads: 22
 

I think thinkgeek.com sucks. With all of their mainstream geek shirts, it's making a trendy "geek" stereotype. I mean, imagine a world where little blonde geeks roam around in the latest trendy "geek" car, with geek shirts, shoes, and matching geek accessories! My definition of geek is me in my worn down striped shirt, greasy hair from no shower in three days, and eyes sunken 3 inches into your head from hours of frustration trying to learn the GTK API for C.

Eico
Light Poster
41 posts since Mar 2004
Reputation Points: 10
Solved Threads: 2
 
My definition of geek is me in my worn down striped shirt, greasy hair from no shower in three days, and eyes sunken 3 inches into your head from hours of frustration trying to learn the GTK API for C.

Sounds just like me during my third year of computer science.

samaru
a.k.a inscissor
Team Colleague
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You