ports/137784: [PATCH] devel/xdg-utils: cannot handle arguments with # symbol

Dmitry Marakasov amdmi3 at amdmi3.ru
Sat Aug 15 02:00:17 UTC 2009


>Number:         137784
>Category:       ports
>Synopsis:       [PATCH] devel/xdg-utils: cannot handle arguments with # symbol
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 15 02:00:16 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 8.0-BETA2 i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 8.0-BETA2 FreeBSD 8.0-BETA2 #0: Thu Jul 30 19:51:12 MSD 2009
>Description:

# xdg-open "http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/applications.html#PORTS-MAJOR-UPGRADE"
sed: 1: "s#%s#http://www.freebsd ...": bad flag in substitute command: 'P'

xdg-open:367:
browser_with_arg=`echo "$browser" | sed s#%s#"$1"#`

obviously there should be some escaping. Or, I'd use printf instead of echo here.

I've also submitted this upstream:
https://bugs.freedesktop.org/show_bug.cgi?id=23319

Port maintainer (gnome at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list