From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10613 invoked from network); 31 Mar 2005 01:50:24 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 31 Mar 2005 01:50:24 -0000 Received: (qmail 58265 invoked from network); 31 Mar 2005 01:50:18 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 31 Mar 2005 01:50:18 -0000 Received: (qmail 11621 invoked by alias); 31 Mar 2005 01:50:09 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8642 Received: (qmail 11605 invoked from network); 31 Mar 2005 01:50:08 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 31 Mar 2005 01:50:08 -0000 Received: (qmail 57189 invoked from network); 31 Mar 2005 01:50:08 -0000 Received: from vms048pub.verizon.net (206.46.252.48) by a.mx.sunsite.dk with SMTP; 31 Mar 2005 01:50:04 -0000 Received: from candle.brasslantern.com ([4.11.1.68]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IE7000ED13CRYI0@vms048.mailsrvcs.net> for zsh-users@sunsite.dk; Wed, 30 Mar 2005 19:50:02 -0600 (CST) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j2V1nxHW026989; Wed, 30 Mar 2005 17:50:00 -0800 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j2V1nxcG026988; Wed, 30 Mar 2005 17:49:59 -0800 Date: Thu, 31 Mar 2005 01:49:58 +0000 From: Bart Schaefer Subject: Re: SheBang Problem In-reply-to: <20050331025357.6ab9795f@localhost> To: Matthias Berndt , zsh-users@sunsite.dk Message-id: <1050331014959.ZM26987@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <20050331025357.6ab9795f@localhost> Comments: In reply to Matthias Berndt "SheBang Problem" (Mar 31, 2:53am) X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 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 "/".