shebang!

Please support our Perl advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Feb 2002
Posts: 1,135
Reputation: samaru is just really nice samaru is just really nice samaru is just really nice samaru is just really nice 
Solved Threads: 5
Team Colleague
samaru's Avatar
samaru samaru is offline Offline
a.k.a inscissor

shebang!

 
0
  #1
Jul 12th, 2002
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. =)
Check out my blog at http://www.shinylight.com for more stuff about web dev.
Reply With Quote Quick reply to this message  
Posts: n/a
Solved Threads: n/a
Unregistered
Guest
 
0
  #2
Dec 8th, 2002
I always thought shebang was a corruption of "Hash - Bang" Where # is the hash mark. :roll: Just my .02

Trey
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,043
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 128
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb
 
0
  #3
Dec 8th, 2002
And to think I'm probably the only gal on the block with a ThinkGeek.com #!/usr/bin/girl t-shirt!
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 1,135
Reputation: samaru is just really nice samaru is just really nice samaru is just really nice samaru is just really nice 
Solved Threads: 5
Team Colleague
samaru's Avatar
samaru samaru is offline Offline
a.k.a inscissor
 
0
  #4
Dec 11th, 2002
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)
Check out my blog at http://www.shinylight.com for more stuff about web dev.
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,043
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 128
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb
 
0
  #5
Dec 11th, 2002
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!
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 1,135
Reputation: samaru is just really nice samaru is just really nice samaru is just really nice samaru is just really nice 
Solved Threads: 5
Team Colleague
samaru's Avatar
samaru samaru is offline Offline
a.k.a inscissor
 
0
  #6
Dec 11th, 2002
That blanket rules. I could carry around that blanket everywhere like Linus.
Check out my blog at http://www.shinylight.com for more stuff about web dev.
Reply With Quote Quick reply to this message  
Join Date: Aug 2002
Posts: 19
Reputation: mylogin is an unknown quantity at this point 
Solved Threads: 0
mylogin mylogin is offline Offline
Newbie Poster
 
0
  #7
Dec 28th, 2002
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.
Reply With Quote Quick reply to this message  
Join Date: Jan 2004
Posts: 468
Reputation: TKS will become famous soon enough TKS will become famous soon enough 
Solved Threads: 18
TKS's Avatar
TKS TKS is offline Offline
Posting Pro in Training

Re: shebang!

 
0
  #8
Mar 6th, 2004
Originally Posted by cscgal
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
My Home Away from Home: Yet Another Linux Blog
Reply With Quote Quick reply to this message  
Join Date: Feb 2004
Posts: 156
Reputation: RC_Razor is an unknown quantity at this point 
Solved Threads: 0
RC_Razor's Avatar
RC_Razor RC_Razor is offline Offline
Junior Poster

Re: shebang!

 
0
  #9
Mar 6th, 2004
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 ..
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 1,135
Reputation: samaru is just really nice samaru is just really nice samaru is just really nice samaru is just really nice 
Solved Threads: 5
Team Colleague
samaru's Avatar
samaru samaru is offline Offline
a.k.a inscissor

Re: shebang!

 
0
  #10
Mar 6th, 2004
Originally Posted by RC_Razor
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!
Check out my blog at http://www.shinylight.com for more stuff about web dev.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Perl Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC