Opened 13 years ago

Closed 7 years ago

#32866 closed enhancement (fixed)

"sudo port ex" should extract

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.0.3
Keywords: Cc: kurthindenburg (Kurt Hindenburg)
Port:

Description

I should be able to extract a port by typing "sudo port ex", but:

$ sudo port ex
Ambiguous action "ex": could be any of {extract exit}.

There's no reason why anyone would ever type "sudo port exit".

Change History (4)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Type: defectenhancement

comment:2 Changed 13 years ago by raimue (Rainer Müller)

exit is a valid command in the interactive port shell. There is no distinction between commands at the moment and all of them can be called in both interactive mode and from command line.

Commands that do not need to be available on the command line interface:

  • cd
  • quit
  • exit

comment:3 Changed 7 years ago by kurthindenburg (Kurt Hindenburg)

Cc: kurthindenburg added

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

Resolution: fixed
Status: newclosed

In 33fa555238be419bf992ca0fb11597bb8c5784f3/macports-base:

Only consider relevant actions for expansion

The cd, quit and exit actions are only useful in shell/batch mode. So, ignore
them when considering what an abbreviated action could expand to, when not in
that mode.

Closes: https://github.com/macports/macports-base/pull/29
Closes: #32866

Note: See TracTickets for help on using tickets.