Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
ksh compatibility experts (extendedglob bareglobqual)
- X-seq: zsh-users 14573
- From: "Jerry Rocteur" <macosx@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: ksh compatibility experts (extendedglob bareglobqual)
- Date: Tue, 17 Nov 2009 10:35:47 +0100 (CET)
- Importance: Normal
- 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,
We're running in ksh compatibility mode (ksh linked to zsh)
What I'd like to do is to write some scripts that make use of Extended Glob and Glob qualifiers!
I'd like to run something like this:
#!/usr/bin/ksh
setopt extendedglob
setopt bareglobqual
touch cc.log
ls (cc|fi).log(N)
ls cc.log
But I have the setopt wrong cause I get this:
./try.ksh
ls: (cc|fi).log(N): No such file or directory
cc.log
Does anyone know how to get ls (cc|fi).log(N) working in compatibility mode, i.e. which option must I overwrite for
this to work ?
Thanks in advance,
Jerry
Messages sorted by:
Reverse Date,
Date,
Thread,
Author