Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh portable script
- X-seq: zsh-users 15166
- From: Atom Smasher <atom@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: zsh portable script
- Date: Tue, 13 Jul 2010 02:46:22 +1200 (NZST)
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Openpgp: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt
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