Bug 15630 - xdg-utils scripts should use /bin/bash as shell not /bin/sh
Summary: xdg-utils scripts should use /bin/bash as shell not /bin/sh
Status: RESOLVED FIXED
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: 1.0
Hardware: Other Solaris
: medium normal
Assignee: Portland Bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-21 08:06 UTC by Darren Kenny
Modified: 2010-07-18 14:06 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.