shebang


Also found in: Dictionary, Thesaurus, Acronyms, Idioms, Wikipedia.
Related to shebang: The Whole SHeBANG

shebang

(operating system)
(Or "shebang line", "bang path") /sh*-bang'/ (From "sharp" and "bang") The magic cookie "#!" used in Unix to mark the start of a script, e.g. a shell script or Perl script.

Under Unix, if the first two bytes of an executable file are "#!", the kernel treats the file as a script rather than a machine code program. The word following the "!" (i.e., everything up to the first whitespace) is used as the pathname of the interpreter. For example, if the first line of an executable is

#!/usr/local/bin/perl

the script will be treated as a Perl script and passed as an argument to /usr/local/bin/perl to be interpreted. Some variants of Unix also allow one or more parameters to be passed to the interpreter, for example, you can write

#!/usr/bin/perl -w

and the script will be started as if you typed

/usr/bin/perl -w <filename>

on the command line. Also, most modern kernels ignore any whitespace between the "!" and the interpreter pathname. Even some modern kernels have fairly small limits (e.g. 32) on the length of line they will accept, making long pathnames and arguments somewhat unportable.

Mentioned in ?
References in periodicals archive ?
The agreement with ThinCats came to fruition after Shebang had sought advice from Paul Stokes of Birminghambased Partner Commercial Finance.
But the planned makeover provides little solace to such people as Bill Sullivan, a 46-year-old accountant who takes the stage as "Daphne" when performing as a member of Shebang.
Tickets start at just PS7 for a week long pass (excluding the big DJ night) up to PS15 for the whole shebang.
The whole shebang kicks off with this offering, which was recorded during the Bristol Proms, which began on July 29 and ends this evening.
Shebang, which operates a mobile phone network from its Daventry base, won the six-figure investment through the ThinCats peer-to-peer loan network.
And one little island like Cyprus could bring the whole shebang down if investors think their money is no longer safe.
Kevin Bridges hosts the whole shebang from the Koko Club in Camden, where it's filmed in front of a live audience.
And here to jumpstart the whole shebang," chortled the BBC's oppressively genial host Terry Wogan.
Although this week's guests are typically sparky, charismatic and fun, it's Brydon himself who holds the whole shebang together.
Non-singing celebs, including Will Smith, will be introducing the acts, and the whole shebang is presented by our very own Phillip Schofield
This mag has been around, but I never saw one until they threw a shebang in Phoenix (DJ'd by the illustrious Horsepussy and Danny G).