All shell script writers using shebang. Shebang is
#!
When you start the script the first line should start with '#!' without quote. as example it looks like
#!/bin/bash
This mean is hereafter parameters and arguments are compatible with 'Bourne shell' or compatible shell.
Shebang was introduced by Dennis Ritchie at Bell Laboratories. It was added to BSD releases first but documented and came out to public with Version 7 Unix at 1979.
Some typical shebang lines:
#!/bin/sh — Execute the file using sh, the Bourne shell, or a compatible shell
#!/bin/csh — Execute the file using csh, the C shell, or a compatible shell
#!/usr/bin/perl -T — Execute using Perl with the option for taint checks
#!/usr/bin/ruby — Execute using Ruby
#!/usr/bin/python -O — Execute using Python with optimizations to code
#!/usr/bin/php — Execute the file using the PHP command line interpreter
*Some documents and books are refer shebang as hashbang
No comments:
Post a Comment