Bug 137784 - [PATCH] devel/xdg-utils: cannot handle arguments with # symbol
Summary: [PATCH] devel/xdg-utils: cannot handle arguments with # symbol
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: freebsd-gnome mailing list
Depends on:
Reported: 2009-08-15 03:00 UTC by Dmitry Marakasov
Modified: 2009-08-15 18:30 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Marakasov 2009-08-15 03:00:16 UTC
# 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'

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:

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

Generated with FreeBSD Port Tools 0.77
Comment 1 Edwin Groothuis freebsd_committer 2009-08-15 03:00:27 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Joe Marcus Clarke freebsd_committer 2009-08-15 18:28:06 UTC
State Changed
From-To: open->closed

Fixed, thanks for reporting.
Comment 3 dfilter service freebsd_committer 2009-08-15 18:28:11 UTC
marcus      2009-08-15 17:28:02 UTC

  FreeBSD ports repository

  Modified files:
    devel/xdg-utils      Makefile 
  Added files:
    devel/xdg-utils/files patch-scripts_xdg-open 
  Fix xdg-open when the URL passed contains a '#'.
  PR:             137784
  Revision  Changes    Path
  1.8       +1 -1      ports/devel/xdg-utils/Makefile
  1.1       +13 -0     ports/devel/xdg-utils/files/patch-scripts_xdg-open (new)
cvs-all@freebsd.org mailing list
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"