Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#53473 closed defect (fixed)

port diagnose and fish shell

Reported by: bestlem Owned by: jmroot (Joshua Root)
Priority: Normal Milestone: MacPorts 2.4.1
Component: base Version: 2.4.0
Keywords: Cc:
Port:

Description (last modified by mf2k (Frank Schima))

I use a non POSIX shell - fish

When I run port diagnose it gives

Warning: your $PATH environment variable does not currently include, /opt/local/bin, which is where port is located.  Would you like to add /opt/local/bin to your $PATH variable now? [Y/N]

Which has two issues

  • /opt/local/bin is on my path and so there is not an error.
  • Second issue is that it cannot add to my path so the question is meaningless

Change History (5)

comment:1 Changed 7 years ago by mf2k (Frank Schima)

In the future, please use WikiFormatting.

comment:2 Changed 7 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:3 Changed 7 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:4 Changed 7 years ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 17c70c9/macports-base:

Port diagnose PATH check improvements

Get shell from dscl instead of assuming bash. Don't try to check the
value of PATH with shells we don't know about. The code to add our dirs
to PATH only works with bash, so don't offer to do it with other
shells. Use the interactive questions API instead of reimplementing it.

Fixes: #53473

comment:5 Changed 7 years ago by jmroot (Joshua Root)

Milestone: MacPorts 2.4.1
Version: 2.4.0
Note: See TracTickets for help on using tickets.