From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7544 invoked by alias); 18 Jul 2012 08:33:47 -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: 17181 Received: (qmail 12597 invoked from network); 18 Jul 2012 08:33:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 74.125.83.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=ItIeWZy6QxcWmFhNFJFRZBmMiZ8ciyGTtqKi4wZuhtc=; b=PH59syg28ESqtpmn2t+4sc8YoIxBng/Aytc6Kkd+E8IZcPHweMTEV00H+9SUKiQJ1o LdsmMZ9ohsBgrJvQYxdTmOEbdu4RLk4Azwu7htMYHlnzNfJS8JovGpJdstHhZHewBfD8 yJggdJjACp1tg0uL+QAgezcqcbCz0mdWphcIXDD5NtY2qbSqviPQkPtdv44EOCFBRpKh gmc7N9P67qBkBMTvXh+mzXMdr4QneIFtlZAX1aPeYepN72Dc2bbNMQabf4af8ggc8q5Y GCX2wG+C7WSjHfp0u9EDNau0szsY1611O5Dgxs6Re266R7GMeeyPkDVRLrUZ8fBJNPVW hUvw== MIME-Version: 1.0 From: Jerry Rocteur Date: Wed, 18 Jul 2012 10:33:18 +0200 Message-ID: Subject: zsh filename expansion in ksh mode To: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 Hi, I have a problem with filename expansion when I'm in a script. filename=/tmp/xxx.*([0-9)].log If I run ls $filename This works fine. But if I run this from a script egrep bla $filename I get invalid filename What option could the admins be loading up when I run a script that disables my filename expansion. NOTE: I was looking for a way to look for a filename that contains an unknown number of numbers *([0-9]) works well at the command line. ZSH_VERSION 2.6 (Redhat 5) /bin/ksh is linked to /usr/zsh and the first lien of the script must be #!/bin/ksh I'm looking for a work around if possible. Thanks in advance, Jerry