zsh-users
 help / color / mirror / code / Atom feed
* Shell scripting with zsh with unknown path
@ 2011-06-27 14:56 TJ Luoma
  2011-06-27 16:51 ` Bart Schaefer
  2011-06-28  0:44 ` Vincent Lefevre
  0 siblings, 2 replies; 3+ messages in thread
From: TJ Luoma @ 2011-06-27 14:56 UTC (permalink / raw)
  To: Zsh Users


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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-06-28  0:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-27 14:56 Shell scripting with zsh with unknown path TJ Luoma
2011-06-27 16:51 ` Bart Schaefer
2011-06-28  0:44 ` Vincent Lefevre

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).