Differences between revisions 14 and 16 (spanning 2 versions)
Revision 14 as of 2008-02-05 09:08:01
Size: 764
Editor: PeMac
Comment:
Revision 16 as of 2008-02-05 21:50:21
Size: 611
Comment: Based on your default Shell
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
["Shell"]>["Bash"] ["Shell"] 
Line 3: Line 3:
ShellScript is a ["Script"] written for the ["Shell"] (["Bash"]). They are similar to *.bat files in Windows. ShellScript is a ["Script"] written for the ["Shell"] (They are similar to *.bat or .cmd files in Windows).
Line 7: Line 7:
They are text files which first line says the shell to use (bash). So the first line is They are text files which first line says the shell to use (like DebPkg:bash , DebPkg:dash, DebPkg:csh, DebPkg:tcsh). So the first line is
 {{{
#!/bin/sh
}}}
Including this line, Debian knows this is a shell script (they don't need to finish with *.[:Sh:sh]).
Line 9: Line 13:
#!/bin/bash

Including this line, Debian knows this is a shell script (they don't need to finish with *.["Sh"]).

After this, you can include comments using # in the beginning of the line. For example:

#This is a comment.

/bin/sh is its interpreter.


Finally, see the ["Bash"] commands.
Line 25: Line 17:

CategoryShell

["Shell"]


ShellScript is a ["Script"] written for the ["Shell"] (They are similar to *.bat or .cmd files in Windows).

The ["MIME"] type is application/x-shellscript

They are text files which first line says the shell to use (like bash , dash, csh, tcsh). So the first line is

Including this line, Debian knows this is a shell script (they don't need to finish with *.[:Sh:sh]).