shellenv: fix `MANPATH` and `INFOPATH` handling for [t]csh
It turns out that control flow in csh is a pain. But we can rely on `test`, which is thankfully POSIX. Closes #17949.
C
Carlo Cabrera committed
3fec77e72aa8b46a8b5eab2da1f6af7e09c68bd7
Parent: 4dcd308