From: Jerry Rocteur <jerry.rocteur@gmail.com>
To: zsh-users@zsh.org
Subject: zsh filename expansion in ksh mode
Date: Wed, 18 Jul 2012 10:33:18 +0200 [thread overview]
Message-ID: <CAGAAoy2ON7WyePW38_YwSzBqCTxk2jgvWoSWUm8XPFuzTu_SfA@mail.gmail.com> (raw)
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
reply other threads:[~2012-07-18 8:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGAAoy2ON7WyePW38_YwSzBqCTxk2jgvWoSWUm8XPFuzTu_SfA@mail.gmail.com \
--to=jerry.rocteur@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).