Zsh/shebang in shell scripts

From raju

< Zsh

shebang in shell scripts

A portable way to write shebang in zsh scripts is

#! /usr/bin/env zsh

The space between #! and /usr/bin/env is optional. But I like it since it is easy to see the interpreter that way.

For perl scripts, debian-policy [2] -> section 10.4 requires

    #!/usr/bin/perl
    

Ref: