[MacPorts] #70680: sudo @1.9.16 -- sudo: port: command not found
MacPorts
noreply at macports.org
Tue Sep 3 18:50:58 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):
Accordong to the bash manual:
{{{
When an interactive shell that is not a login shell is started, bash
reads and executes commands from ~/.bashrc, if that file exists. This
may be inhibited by using the --norc option. The --rcfile file option
will force bash to read and execute commands from file instead of
~/.bashrc.
}}}
The MacPorts paths are added in ~/.profile. ~/.bashrc does not exist.
P.S. I tried adding the MacPorts paths in ~/.bashrc. It did not work.
{{{
bash-3.2# cat ~/.profile
# MacPorts Installer addition on 2024-08-19_at_18:46:59: adding an
appropriate PATH variable for use with MacPorts.
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
# Finished adapting your PATH environment variable for use with MacPorts.
bash-3.2#
bash-3.2# cat ~/.bashrc
cat: /Users/grinch/.bashrc: No such file or directory
}}}
--
Ticket URL: <https://trac.macports.org/ticket/70680#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list