[MacPorts] #70680: sudo @1.9.16 -- sudo: port: command not found
MacPorts
noreply at macports.org
Tue Sep 3 19:16:17 UTC 2024
#70680: sudo @1.9.16 -- sudo: port: command not found
---------------------+--------------------
Reporter: RobK88 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.1
Resolution: | Keywords:
Port: port |
---------------------+--------------------
Comment (by RobK88):
I am baffled. `bash` appears to be configured properly. But `sudo` does
not appear to obey the `$PATH`.
{{{
grinch$ echo $PATH
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
grinch$ sudo echo $PATH
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
grinch$ sudo bash
bash-3.2#
bash-3.2# echo $PATH
/opt/local/bin:/opt/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
bash-3.2# sudo port
sudo: port: command not found
bash-3.2#
}}}
--
Ticket URL: <https://trac.macports.org/ticket/70680#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list