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

Re: Zsh reporting bad return status of commands



Clint Olsen wrote:
>On HP-UX for some reason, 3.0 started doing this:
>
>/foo not found
>zsh: exit 2     ls -AF /foo
>
>It doesn't exhibit this behavior on SunOS.  It's not that big of a deal,
>but it's rather irritating to see the extra output.

This output is controlled by a zsh option, PRINT_EXIT_VALUE.  Use
"setopt noprintexitvalue" to disable it.  Or, since it's off by
default, remove the "setopt printexitvalue" from your
.z(profile|login|sh(rc|env)).

-zefram



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