Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: Zsh + YUM

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Zsh + YUM

    Hi all, just a question regarding zsh.

    In bash, I was able to list a set of packages like this:

    $ yum list *package*
    However, in zsh I need to escape the '*'s like this:

    % 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.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    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.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts