FS#6294 - Shell scripts assume /bin/sh is bash

Attached to Project: Rockbox
Opened by Jonas Häggqvist (rasher) - Sunday, 05 November 2006, 23:10 GMT
Task Type Bugs
Category Build environment
Status Closed
Assigned To Jonas Häggqvist (rasher)
Operating System All players
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


There are problems with, at least, the configure script, which has been causing troubles on Ubuntu 6.10, since /bin/sh is not bash by default. Ideally, shell scripts should have a shebang of #!/bin/sh and use POSIX compatible syntax and features. See

Files that should to be checked:
- tools/configure
- tools/
- tools/
- tools/
- tools/
This task depends upon

Closed by  Jonas Häggqvist (rasher)
Monday, 06 November 2006, 11:22 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed a bunch of \"==\", which I introduced myself (and one I didn\'t, in the manual makefile). That\'ll do.
Comment by Daniel Stenberg (bagder) - Sunday, 05 November 2006, 23:16 GMT
AFAIK, people have successfully used configure on at least FreeBSD and Mac OS X as well. Do they use bash as default shells?
Comment by Daniel Stenberg (bagder) - Sunday, 05 November 2006, 23:18 GMT
Or perhaps a more suitable way to ask the question is: what particular non-POSIX constructs are we using then?
Comment by Jonas Häggqvist (rasher) - Sunday, 05 November 2006, 23:24 GMT
I actually don't know, since I'm in the process of reinstalling the system I use for Rockbox development, but I noticed in the logs that someone had problems with building the manual (I think it was). It might be that that's the only problem, but I thought I'd give all scripts a thorough looking over.