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

Re: -prefix conditional expression operator



On Nov 18,  1:09am, Greg Klanderman wrote:
}
} Exactly what pattern syntax is allowed by the -prefix operator in
} conditional expressions (in completion functions, of course)?

You've got the right pattern syntax, but the patterns must be quoted:

   [[ -prefix '(\\|)\^/' ]]

Module-supplied operators like -prefix can't change the shell's basic
syntax rules.



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