Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh filename expansion in ksh mode
- X-seq: zsh-users 17181
- From: Jerry Rocteur <jerry.rocteur@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: zsh filename expansion in ksh mode
- Date: Wed, 18 Jul 2012 10:33:18 +0200
- 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==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author