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`
No, $(echo hello) is perfectly POSIX. See SUSv3 section 2.6.3 (http://www.unix.org/single_unix_specification/).
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.