zsh-users
 help / color / mirror / code / Atom feed
* zsh filename expansion in ksh mode
@ 2012-07-18  8:33 Jerry Rocteur
  0 siblings, 0 replies; only message in thread
From: Jerry Rocteur @ 2012-07-18  8:33 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-07-18  8:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-18  8:33 zsh filename expansion in ksh mode Jerry Rocteur

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).