943,473 Members | Top Members by Rank

Ad:
  • Perl Discussion Thread
  • Unsolved
  • Views: 8429
  • Perl RSS
You are currently viewing page 1 of this multi-page discussion thread
Jul 12th, 2002
0

shebang!

Expand Post »
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. =)
Similar Threads
Team Colleague
Reputation Points: 262
Solved Threads: 18
a.k.a inscissor
samaru is offline Offline
1,227 posts
since Feb 2002
Dec 8th, 2002
0
Re: shebang!
I always thought shebang was a corruption of "Hash - Bang" Where # is the hash mark. :roll: Just my .02

Trey
Unregistered
Reputation Points:
Solved Threads:
Guest
n/a posts
Dec 8th, 2002
0
Re: shebang!
And to think I'm probably the only gal on the block with a ThinkGeek.com #!/usr/bin/girl t-shirt!
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Dec 11th, 2002
0
Re: shebang!
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)
Team Colleague
Reputation Points: 262
Solved Threads: 18
a.k.a inscissor
samaru is offline Offline
1,227 posts
since Feb 2002
Dec 11th, 2002
0
Re: shebang!
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!
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Dec 11th, 2002
0
Re: shebang!
That blanket rules. I could carry around that blanket everywhere like Linus.
Team Colleague
Reputation Points: 262
Solved Threads: 18
a.k.a inscissor
samaru is offline Offline
1,227 posts
since Feb 2002
Dec 28th, 2002
0
Re: shebang!
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.
Reputation Points: 12
Solved Threads: 0
Newbie Poster
mylogin is offline Offline
19 posts
since Aug 2002
Mar 6th, 2004
0

Re: shebang!

Quote 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
TKS
Reputation Points: 108
Solved Threads: 18
Posting Pro in Training
TKS is offline Offline
470 posts
since Jan 2004
Mar 6th, 2004
0

Re: shebang!

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 ..
Reputation Points: 18
Solved Threads: 0
Junior Poster
RC_Razor is offline Offline
156 posts
since Feb 2004
Mar 6th, 2004
0

Re: shebang!

Quote 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!
Team Colleague
Reputation Points: 262
Solved Threads: 18
a.k.a inscissor
samaru is offline Offline
1,227 posts
since Feb 2002

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Perl Forum Timeline: Safe Perl
Next Thread in Perl Forum Timeline: Open HTML Page





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC