Home » Questions » Computers [ Ask a new question ]

zsh force silence on "ls --hide"

zsh force silence on "ls --hide"

I recently switched to zsh. In bash, when I use "ls --hide=*.pyc" in a file with no .pyc files, ls works as expected. In zsh, "ls --hide=*.pyc" works when the directory contains .pyc files, but fails with zsh: no matches found: --hide=*.pyc when no matches are found.

Asked by: Guest | Views: 43
Total answers/comments: 1
Guest [Entry]

Try doing unsetopt nomatch.