Opened 11 years ago

Closed 7 years ago

#38428 closed enhancement (fixed)

RFE: `port -q provides` should print just the portname

Reported by: cooljeanius (Eric Gallager) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.1.3
Keywords: Cc: kurthindenburg (Kurt Hindenburg)
Port:

Description

This would make it easier to parse in scripts. Currently I have to pipe the output through | cut -d\: -f2 first before I can use it. Also this should only be with the -q flag because the other information is useful in other contexts. I think I also brought this up on irc a few months ago but never got around to making a ticket for it until now...

Change History (2)

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

Cc: kurthindenburg added

This could be done since that appears to be what -q is meant for and it has no other use for provides.

comment:2 Changed 7 years ago by Kurt Hindenburg <kurt.hindenburg@…>

Resolution: fixed
Status: newclosed

In 628dc4968c8a4f63e3b62da610543c230807d1ab/macports-base:

For port -q provides only output port (no warnings)

closes https://github.com/macports/macports-base/pull/30
closes: #38428

Note: See TracTickets for help on using tickets.