shebang

(redirected from Shabang)
Also found in: Dictionary, Thesaurus.

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 ?
Shabang is the nominated charity of Holly Bank's parent company, Portland Nurseries Group, and collectively the company has so far raised more than PS3,000 across their four nurseries through many fundraising events and activities.
Shabang, based in Richardson, Texas, is the first and only interactive shopping service to date, according to Wood.
Shabang Inclusive Learning will invest its money in the 'Up Club', running creative sessions using drama and role play to improve the young people's communication, learn new skills, improve their confidence and enable them to have fun with
Shabang, which runs drama, music and art projects for children with additional needs at The Watershed, is the only Huddersfield organisation on the Big Lottery Fund shortlist for this year's People's Projects.
"ViveSport have a close association with Shabang due to our work within SEN schools in Kirklees and our inclusive badminton sessions."
With this in mind, Shabang!, which describes itself as a "personal shopping community," has created an Internet shopping experience that is more focused on the product than the retailer.
Joining the professional cast, which includes Casualty actor Patrick Robinson in the leading role of Prospero, are children from Slaithwaite-based arts organisation Shabang!
Penney, Highlights, Shabang!, The Home Co., Rivertown Trading, Rust & Martin, The Container Store, Kichler Lighting, Kalco Lighting, GuildMaster, Haven TV, Interiors Inc., and many more.
Just over PS13,000 has been awarded to Shabang! Inclusive Learning in Slaithwaite.
The Bombay Company is going online with Shabang!, the Internet shopping community.
Shabang! Inclusive Learning, based at The Watershed in Slaithwaite, has entitled its full-colour 2018 calendar "Choose-Happy" and included a different inspirational quote for each month along with the heart-warming images.
The Genetic Alliance, the Wolf Hirschom Trust and Shabang all received cheques from the organisers of the annual event.