Bug 104298 - xdg-utils-1.1.2 xdg-mime awk script syntax error
Summary: xdg-utils-1.1.2 xdg-mime awk script syntax error
Status: RESOLVED FIXED
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Portland Bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-17 01:07 UTC by Eternal Sorrow
Modified: 2017-12-18 21:51 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
awk-length.patch (775 bytes, patch)
2017-12-17 01:07 UTC, Eternal Sorrow
Details | Splinter Review

Description Eternal Sorrow 2017-12-17 01:07:06 UTC
Created attachment 136236 [details] [review]
awk-length.patch

I got multiple awk errors when tried to use xdg-utils and xdg-settings. For example:

$~ xdg-mime query default text/html
awk: cmd. line:13: Unexpected token
awk: cmd. line:13: Unexpected token
awk: cmd. line:13: Unexpected token
firefox.desktop

After some testing I've found the reason: awk funnction "length" is used without parenthesis which is unsupported by gawk. I've created simple patch to fix this.
Comment 1 Rex Dieter 2017-12-18 21:51:04 UTC
Thanks, patch committed


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.