[Portland-bugs] [Bug 86028] New: xdg-open shell script contains bash code

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Nov 8 01:45:40 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=86028

            Bug ID: 86028
           Summary: xdg-open shell script contains bash code
           Product: Portland
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: xdg-utils
          Assignee: portland-bugs at lists.freedesktop.org
          Reporter: yuri at tsoft.com

xdg-open (interpreted by /bin/sh) contains this line:
file="$(printf "$(echo "$file" | sed -e 's@%\([a-f0-9A-F]\{2\}\)@\\x\1 at g')")"

This syntax is for bash, and not for the regular shell.
It fails on FreeBSD, where sh!=bash (unlike on linux)

This line should be fixed to work with the regular shell.

xdg-utils-1.0.2.20130919

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/portland-bugs/attachments/20141108/ecd1c2ad/attachment.html>


More information about the Portland-bugs mailing list