Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

ksh compatibility experts (extendedglob bareglobqual)



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