[tech] two ways to specify interpreter in scripts

take perl as example:

#! /usr/bin/perl

or

#! /usr/bin/env perl

the second one is more safe if more than one version exists and the one you want to use is not the /usr/bin/perl.

the first stytle can be used in some special conditions where a specific version needs to exacuate.

--
This paper is original. All rights reserved. Welcome reproduce, please indicate the source and keep this statement!
Title:
Link:
posted @ 2013-12-03 19:13  Dicor  阅读(165)  评论(0编辑  收藏  举报