sbin has been removed from default PATH

I just update iTerm2 to Build 3.5.0beta22 from 3.4.23 to get a bug fix. Now /usr/sbin and /sbin is not present in the PATH environment variable. I'm using Fish 3.2.2 as the shell. Seems to happen with Bash and Zsh as well. In the Terminal application the paths are still present. I've not modified the shell config file. I've configured the PATH environment variable in ~/.config/fish/config.fish as follows:

set PATH /opt/homebrew/bin /usr/local/bin $PATH

Detailed steps to reproduce the problem:

  1. Inspect the PATH environment variable: echo $PATH
  2. Update iTerm to Build 3.5.0beta22
  3. Inspect the PATH environment variable again

What happened: /usr/sbin and /sbin was removed from the PATH environment variable

What should have happened: the above paths should be present in the PATH environment variable

I've attached a screenshot that shows the PATH environment variable before and after the update.

Screenshot_2024-03-22_at_16.05.57

Edited by Jacob Carlborg