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

Re: cd with wildcard fails instead cd's to home



> On 27 April 2021 at 13:46 zzapper <zsh@xxxxxxxxxxxxxx> wrote:
> ~/Videos/kdenlivedemo > cd gggg*
> ~ >      # <<<< BAD I've cd'd to home -- no warning message

You've got the NULL_GLOB option set, which simply removes any argument
with pattern characters in that doesn't match.

It's not a common thing to have set, you'd better try to work out
why you have it.

If there is a reason, think about CSH_NULL_GLOB instead --- that
will throw in error if *all* patterns fail, as in this case.

Go to

http://zsh.sourceforge.net/Guide/zshguide02.html#l13

and search down for CSH_NULL_GLOB for more on the related options.

pws




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