From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26262 invoked from network); 1 Feb 2004 17:15:58 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 1 Feb 2004 17:15:58 -0000 Received: (qmail 1451 invoked by alias); 1 Feb 2004 17:15:39 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7036 Received: (qmail 1398 invoked from network); 1 Feb 2004 17:15:38 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 1 Feb 2004 17:15:38 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.11.9.147] by sunsite.dk (MessageWall 1.0.8) with SMTP; 1 Feb 2004 17:15:37 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id i11HFaw06525 for zsh-users@sunsite.dk; Sun, 1 Feb 2004 09:15:36 -0800 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to schaefer@closedmail.com using -f From: Bart Schaefer Message-Id: <1040201171535.ZM6524@candle.brasslantern.com> Date: Sun, 1 Feb 2004 17:15:35 +0000 In-Reply-To: <20040201154425.GD1023@eumel.yoo.local> Comments: In reply to Thorsten Haude "POSIX" (Feb 1, 4:44pm) References: <20040201154425.GD1023@eumel.yoo.local> X-Mailer: Z-Mail (5.0.0 30July97) To: Zsh User ML Subject: Re: POSIX MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 1, 4:44pm, Thorsten Haude wrote: } } That would mean that you should not use '.[^.]*' to find hidden files. } Instead it is stated to use '.[!.]*', which does not work in Zsh: It does work, if you "unsetopt banghist" -- and having banghist unset is the default state in NON-interactive shells, so any shell script that uses the POSIX form would work correctly. The circumflex form is for backwards compatibility and as a shortcut in interactive shells so that you don't have to type the extra backslash. } ('.[\!.]*' works though.) And that, in fact, would NOT work in a shell script, because the history mechanism in the interactive line editor is what removes the backslash.