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

Re: KSH style globbing



On Nov 6,  8:54pm, Stefan Troeger wrote:
} Subject: KSH style globbing
}
} setopt KSH_GLOB
} ls !(*a*)
} 
} zsh: number expected
} 
} What am I doing wrong?

You need

	setopt KSH_GLOB NO_BARE_GLOB_QUAL

Otherwise, the trailing parens are interpreted as a glob qualifier before
they have a chance to be considered as a ksh pattern.  This ought to be
documented better.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author