I am doing something I always do in Bash:
set | grep -i path
and the output is
Binary file (standard input) matches
grep --help works, and
set | more works too.
set > /tmp/zshset
/tmp/zshset in your favorite editor. Look for
The default value for this, per the
zshparam man page, is default space, tab, newline and NUL. This last one is causing the trouble.
grep sees the NUL (ascii 0, displayed often as
^@) and thinks that this is a binary file.
grep -aas suggested by KeithB (or its equivalent
grep -ato save yourself a little bit of typing
env | grep -i path,
echo $PATH) -- I think the other solutions are simpler