zsh-users
 help / color / mirror / code / Atom feed
From: TJ Luoma <luomat@gmail.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Shell scripting with zsh with unknown path
Date: Mon, 27 Jun 2011 10:56:35 -0400	[thread overview]
Message-ID: <r422Ps-1068i-9B5EB01499CF480697563A7E4C94112A@Air.local> (raw)


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




             reply	other threads:[~2011-06-27 14:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-27 14:56 TJ Luoma [this message]
2011-06-27 16:51 ` Bart Schaefer
2011-06-28  0:44 ` Vincent Lefevre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=r422Ps-1068i-9B5EB01499CF480697563A7E4C94112A@Air.local \
    --to=luomat@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).