From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25988 invoked by alias); 24 Oct 2011 14:57:43 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16540 Received: (qmail 26239 invoked from network); 24 Oct 2011 14:57:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.216.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=8MzPyAX3h+ufQhrCUn1oSj+M2vb8io3EfxskJ1lE7eA=; b=fxa+c7Nl4oesv6DGobrZ5tDuqJYnmRLxl21hHrsLskr50ixVoaqeSSEL8XVwRzNt9s P9x2vmUZC1vLZ2rP59DMq8CfsaHh3+AhicELFmThP18ZDv+0LeNfPWSdw4lNxmeyOnoq Bsn5NVzk/IO71XaKzPixo6gqHV1wGu/6ttdCU= MIME-Version: 1.0 In-Reply-To: References: From: TJ Luoma Date: Mon, 24 Oct 2011 10:25:24 -0400 Message-ID: Subject: Re: checking for file existence when I don't know the exact name To: =?UTF-8?B?SsOpcsOpbWllIFJvcXVldA==?= Cc: Zsh Users Content-Type: multipart/alternative; boundary=f46d04190dfaec475904b00c33f0 --f46d04190dfaec475904b00c33f0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2011/10/24 J=C3=A9r=C3=A9mie Roquet > From the man, section =E2=80=9Cconditional expressions=E2=80=9D : > > =E2=80=9CFile generation is not performed on any form of argument to co= nditions.=E2=80=9D > This isn't file _generation_, is it? Or am I not understanding zsh's terms? TjL ps -- thanks to the other responders as well. Glad to know I wasn't just doing it wrong, but that it just doesn't work the way I thought. I guess I still don't fully understand why / when to use [[ ]] instead of [ ] --f46d04190dfaec475904b00c33f0--