From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1177 invoked from network); 28 Oct 2008 22:13:03 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.2.5 Received: from ns2.primenet.com.au (HELO primenet.com.au) (203.24.36.3) by ns1.primenet.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 28 Oct 2008 22:13:03 -0000 Received: (qmail 9153 invoked from network); 28 Oct 2008 16:44:49 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns2.melb.primenet.com.au with SMTP; 28 Oct 2008 16:44:49 -0000 Received-SPF: none (ns2.melb.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 18800 invoked from network); 28 Oct 2008 16:43:34 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 Oct 2008 16:43:34 -0000 Received: (qmail 11950 invoked by alias); 28 Oct 2008 16:43:25 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25936 Received: (qmail 11939 invoked from network); 28 Oct 2008 16:43:25 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 28 Oct 2008 16:43:25 -0000 Received: from mail.o2.co.uk (sidious.london.02.net [82.132.130.152]) by bifrost.dotsrc.org (Postfix) with ESMTP id 5606380525BB for ; Tue, 28 Oct 2008 17:43:20 +0100 (CET) Received: from sc.homeunix.net (78.105.216.138) by mail.o2.co.uk (8.0.013.3) (authenticated as stephane.chazelas) id 4906F17300153859 for zsh-workers@sunsite.dk; Tue, 28 Oct 2008 16:43:20 +0000 Received: from chazelas by sc.homeunix.net with local (Exim 4.69) (envelope-from ) id 1Kurf5-0006VZ-4E for zsh-workers@sunsite.dk; Tue, 28 Oct 2008 16:43:19 +0000 Date: Tue, 28 Oct 2008 16:43:19 +0000 From: Stephane Chazelas To: Zsh hackers list Subject: "." not recognising "--" as the end-of-options Message-ID: <20081028164318.GD4819@sc.homeunix.net> Mail-Followup-To: Zsh hackers list MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.16 (2007-09-19) X-Virus-Scanned: ClamAV 0.92.1/8526/Tue Oct 28 14:21:35 2008 on bifrost X-Virus-Status: Clean Hiya, $ zsh -c '. -- --help' zsh:.:1: no such file or directory: -- $ ARGV0=sh zsh -c '. -- --help' zsh:.:1: no such file or directory: -- The handling of "--" is mandated by POSIX I beleive. With ksh, pdksh, bash you have to use: . -- "$1" if you can't guarantee that "$1" won't start with a "-". Unfortunately, that code doesn't work with zsh at the moment. -- Stéphane