Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

zsh portable script



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



Messages sorted by: Reverse Date, Date, Thread, Author