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

Dmitry Marakasov amdmi3 at amdmi3.ru
Sat Aug 15 01:58:53 UTC 2009


>Submitter-Id:	current-users
>Originator:	Dmitry Marakasov
>Organization:	
>Confidential:	no 
>Synopsis:	[PATCH] devel/xdg-utils: cannot handle arguments with # symbol
>Severity:	non-critical
>Priority:	low
>Category:	ports 
>Class:		change-request
>Release:	FreeBSD 8.0-BETA2 i386
>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:


More information about the freebsd-gnome mailing list