Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Shell scripting with zsh with unknown path
- X-seq: zsh-users 16106
- From: TJ Luoma <luomat@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Shell scripting with zsh with unknown path
- Date: Mon, 27 Jun 2011 10:56:35 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:subject:to:x-priority:message-id :mime-version:content-type:content-transfer-encoding:x-mailer; bh=xnQc9vGG6Q8XNx6eqydwz+TABZJS8HkcNybeemtVP4I=; b=bR6AdaKhbXw0gCXiMAeZCUBRJIHQ25TsCZZwzxGVW/PVsy3jYBC9UrX3HWxMbrAIg7 N7TxqmvZEzRvKpT3qNm2Bur210fII8F8UBcye+TyVX0M832si/8VQQYjAHZt4CrB9iMn g48H3/PX+VhUIMUL2JJ2angDleK3AO+TQS6Pg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:subject:to:x-priority:message-id:mime-version :content-type:content-transfer-encoding:x-mailer; b=wp1kfnNPOsdgl6xtgslNRPPdHHfJwoFLpDgOl7eUWiPdTTR3SpxvalV+SXauiFTm7H 28rSUlwdYFQkzX4QhRmAE6Fira4YCYSTA+SRTWiD17ydxFyyZ3bt/a8DOIBmD+BVKJu9 SuC60e36Yp2U0KTIydwvTKYlkCX3Vk5v3OfjY=
- 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
I have always written my shell scripts in #!/bin/sh or
#!/bin/bash but there are times when I find that I would really
prefer to use zsh.
Ideally I'd like to be able to write all of my scripts in zsh so
I don't have to keep two syntax/feature sets in my head.
The problem is that I don't always know where zsh will be
installed. It could be /usr/bin/zsh or /usr/local/bin/zsh or /bin/zsh.
I have seen perl scripts which have used
#!/usr/bin/env perl
but that did not seem to work for zsh.
TjL
Messages sorted by:
Reverse Date,
Date,
Thread,
Author