From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3286 invoked by alias); 12 Jul 2010 14:53:46 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15166 Received: (qmail 21171 invoked from network); 12 Jul 2010 14:53:24 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at smasher.org designates 69.55.237.145 as permitted sender) Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Date: Tue, 13 Jul 2010 02:46:22 +1200 (NZST) From: Atom Smasher Message-ID: <1007130241570.5546@smasher> MIME-Version: 1.0 OpenPGP: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt Subject: zsh portable script To: zsh-users@zsh.org X-POM: The Moon is Waxing Crescent (1% of Full) X-Hashcash: 1:20:1007121446:zsh-users@zsh.org::ID2e288VGXFq/50a:0000000000000000 0000000000000000000000002wjP on freebsd, zsh installs as /usr/local/bin/zsh. on linux (and most other systems?) it installs as /usr/bin/zsh. what's the best way to make zsh script portable between linux and freebsd? i could start the script with: #!/usr/bin/env zsh or i could specify that the script be executed as: zsh script is there a better way? -- ...atom ________________________ http://atom.smasher.org/ 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808 ------------------------------------------------- "WAR IS PEACE, FREEDOM IS SLAVERY, IGNORANCE IS STRENGTH" The two minutes hate ended with this message which is the slogan of the Party. -- George Orwell