Bug 15630

Summary: xdg-utils scripts should use /bin/bash as shell not /bin/sh
Product: Portland Reporter: Darren Kenny <darren.kenny>
Component: xdg-utilsAssignee: Portland Bugs <portland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: pelle
Version: 1.0   
Hardware: Other   
OS: Solaris   
Whiteboard:
i915 platform: i915 features:

Description Darren Kenny 2008-04-21 08:06:57 UTC
All of the xdg-utils scripts are using bash syntax not pure bourne-shell syntax.

As such they should be updated to either use /bin/bash as the execution shell or be fixed to not use bash syntax.

For example, the use of $( ) to execute :

  A=$(echo hello)

should be

  A=`echo hello`
Comment 1 Per Olofsson 2008-05-05 01:30:52 UTC
No, $(echo hello) is perfectly POSIX. See SUSv3 section 2.6.3 (http://www.unix.org/single_unix_specification/).
Comment 2 Pablo Castellano (pablog) 2010-07-18 14:06:17 UTC
I have checked with the checkbashisms script and actually there are no bashisms in the xdg-utils scripts

Closing bug.

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.