[MacPorts] #27504: bash completion and sudo password problem

MacPorts noreply at macports.org
Fri May 11 15:56:51 PDT 2012


#27504: bash completion and sudo password problem
----------------------------------+-----------------------------------------
 Reporter:  heapifyman@…          |       Owner:  raimue@…           
     Type:  defect                |      Status:  new                
 Priority:  Normal                |   Milestone:                     
Component:  ports                 |     Version:  1.9.2              
 Keywords:                        |        Port:  bash-completion    
----------------------------------+-----------------------------------------

Comment(by ryandesign@…):

 Replying to [comment:10 heapifyman@…]:
 > The problem seems to be that I am working as a non-admin user and have
 to invoke the port command with prepening sudo.

 Even admin users have to do that. Only the root user wouldn't have to do
 that, but nobody would log into a Mac as root.

 > As I am a lazy person I thought I'd add an alias to my ~/.profile like
 this:
 {{{
 alias port="sudo port"
 }}}
 > The problem described above only happens when this alias is active.
 Without the alias bash-completion works as expected.

 Then I would say this isn't something we need to fix.

 > Is there some other way to avoid typing sudo all the time when using
 port command?

 Nope; I typo `sudo` all the time too. Oh well.

-- 
Ticket URL: <https://trac.macports.org/ticket/27504#comment:11>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list