<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Shebang (Unix) - Page 7 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=shebang_(Unix)&amp;p=6">1.Previous</a><br />
<a accesskey="3" href="page.php?w=shebang_%28Unix%29&amp;p=8">3.Next</a>
</p>
<p>as <a href="page.php?w=macOS">macOS</a>), the file specified by interpreter must be an executable binary and cannot itself be a script.</p>

<p>If the script is invoked by explicitly calling the interpreter, the <code>#!</code> line is never consulted. For example, if <code>script.sh</code>'s first line is <code>#!/usr/games/nibbles</code>, running <code>sh script.sh</code> will <b>not</b> try to open the script in <code>nibbles</code>, but <code>./script.sh</code> will.</p>

<p><big>Examples</big></p>
<p>Some typical shebang lines:<br/>
* <code>#!/bin/sh</code></p><p>
<a accesskey="1" href="page.php?w=shebang_(Unix)&amp;p=6">1.Previous</a><br />
<a accesskey="3" href="page.php?w=shebang_%28Unix%29&amp;p=8">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
