Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: SheBang Problem
- X-seq: zsh-users 8642
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Matthias Berndt <Berndt.Matthias@xxxxxx>, zsh-users@xxxxxxxxxx
- Subject: Re: SheBang Problem
- Date: Thu, 31 Mar 2005 01:49:58 +0000
- In-reply-to: <20050331025357.6ab9795f@localhost>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050331025357.6ab9795f@localhost>
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 "/".
Messages sorted by:
Reverse Date,
Date,
Thread,
Author