-
Zsh + YUM
Hi all, just a question regarding zsh.
In bash, I was able to list a set of packages like this:
Code:
$ yum list *package*
However, in zsh I need to escape the '*'s like this:
Code:
% yum list \*package\*
Is there any way to set zsh to run like bash in this sense? It's a little bit annoying, and I can't find much on the web regarding it.
-
You should be able to enclose the argument in single quotes. That works for me consistently in all shells, including zsh and bash. Ie: yum list '*package*'
FWIW, this is also good in case you have some files in your local directory that would match the pattern *package* since the single quotes won't expand the wild-cards, but will pass the string directly to yum.