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 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-15 03:00 UTC by Dmitry Marakasov
Modified: 2009-08-15 18:30 UTC (History)
1 user (show)

See Also:


Attachments

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'

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@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 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 freebsd_triage 2009-08-15 18:28:06 UTC
State Changed
From-To: open->closed

Fixed, thanks for reporting.
Comment 3 dfilter service freebsd_committer freebsd_triage 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 
  Log:
  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
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"