* SheBang Problem
@ 2005-03-31 0:53 Matthias Berndt
2005-03-31 1:49 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Matthias Berndt @ 2005-03-31 0:53 UTC (permalink / raw)
To: zsh-users
Greetings,
why is there a difference between the SheBang "#!/bin/zsh" and
"#!/bin/sh", where /bin/sh is a symlink to /bin/zsh.
I don't find anything about in the man-pages, but still need some
information.
Thanks
Matthias Berndt
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: SheBang Problem
2005-03-31 0:53 SheBang Problem Matthias Berndt
@ 2005-03-31 1:49 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2005-03-31 1:49 UTC (permalink / raw)
To: Matthias Berndt, zsh-users
On Mar 31, 2:53am, Matthias Berndt wrote:
}
} I don't find anything about in the man-pages, but still need some
} information.
Depending on your version of zsh, it's either the very last section
in "man zshmisc" or about 60% of the way through "man zsh". The
title of the section is COMPATIBILITY.
Zsh tries to emulate sh or ksh when it is invoked as sh or
ksh respectively; more precisely, it looks at the first
letter of the name by which it was invoked, excluding any
initial `r' (assumed to stand for `restricted'), and if
that is `s' or `k' it will emulate sh or ksh.
In this "the first letter of the name" means the file name with any
leading path removed, i.e. the first letter of the *name* of /bin/sh
is "s" and the first letter of the *path* of /bin/sh is "/".
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-31 1:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-31 0:53 SheBang Problem Matthias Berndt
2005-03-31 1:49 ` Bart Schaefer
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).