Bug 85669 - bsd.ports.subdir.mk: Ports not escape plus signal in make search
Summary: bsd.ports.subdir.mk: Ports not escape plus signal in make search
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Port Management Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-02 20:50 UTC by Ricardo A. Reis
Modified: 2005-11-08 09:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ricardo A. Reis 2005-09-02 20:50:18 UTC
      Ports not escape plus signal in make search.

Fix: cd /usr/ports ; make search name="apache\\+mod_ssl-1.3.33\\+2.8.22_1"

or

This small path add gsub + per \+,
      ---------------------------------------


/usr/ports# make search name="apache+mod_ssl-1.3.33+2.8.22_1"
Port:   apache+mod_ssl-1.3.33+2.8.22_1
Path:   /usr/ports/www/apache13-modssl
Info:   The Apache 1.3 webserver with SSL/TLS functionality
Maint:  dinoex@FreeBSD.org
B-deps: expat-1.95.8_3 mm-1.3.1 perl-5.8.7
R-deps: expat-1.95.8_3 mm-1.3.1
WWW:    http://www.apache.org/--XKIVW3D7Ruud6herCCaupiIPT6KXkC4DJGbf9OPqpyrzmucA
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

*** bsd.port.subdir.mk  Mon Feb 28 18:09:04 2005
--- bsd.port.subdir.mk.diff     Fri Sep  2 08:37:36 2005
***************
*** 365,370 ****
--- 365,371 ----
            -v xkeylim="$${xkeylim:-${PORTSEARCH_XKEYLIM}}" \
            -v display="$${display:-${PORTSEARCH_DISPLAY_FIELDS}}" \
        'BEGIN { \
+           gsub(/\+/,"\\+",name);\
            if (substr(there, 1, length(top)) == top) \
              there = "${PORTSDIR}" substr(there, 1 + length(top)); \
            therelen = length(there); \
-----------------------------------------
How-To-Repeat: cd /usr/ports ; make search name="apache+mod_ssl-1.3.33+2.8.22_1"
Comment 1 Sam Lawrance freebsd_committer freebsd_triage 2005-09-03 16:21:34 UTC
Responsible Changed
From-To: freebsd-ports-bugs->portmgr

Ports infrastructure
Comment 2 Clement Laforet freebsd_committer freebsd_triage 2005-10-19 20:16:03 UTC
State Changed
From-To: open->analyzed

Added to exp build. Thanks
Comment 3 Clement Laforet freebsd_committer freebsd_triage 2005-11-08 09:10:36 UTC
State Changed
From-To: analyzed->closed

Committed. Thanks!