Date: Fri, 02 Sep 2005 11:47:11 +0000 From: Ricardo Alves dos Reis <ricardo_bsd@yahoo.com.br> To: stable@freebsd.org Subject: PORTS: Escape Plus Signal in make search Message-ID: <1125661631.3233.9.camel@ricardo.epm.br>
next in thread | raw e-mail | index | archive | help
Hi all, I discover one bug in make search target, variable name not escape + /usr/ports# make search name="apache+mod_ssl-1.3.33+2.8.22_1" /usr/ports# This small path add gsub + per /+, --------------------------------------- *** 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); \ ----------------------------------------- With the patch /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/ Ricardo A. Reis UNIFESP - SENAI _______________________________________________________ Yahoo! Messenger com voz: PROMOÇÃO VOCÊ PODE LEVAR UMA VIAGEM NA CONVERSA. Participe! www.yahoo.com.br/messenger/promocao
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1125661631.3233.9.camel>