[cairo-bugs] [Bug 16299] cairo tests assume /bin/sh is bash

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jun 12 12:04:27 PDT 2008


--- Comment #2 from Michael <mjbauer at eecs.tufts.edu>  2008-06-12 12:04:26 PST ---
bugzilla-daemon at freedesktop.org wrote:
> http://bugs.freedesktop.org/show_bug.cgi?id=16299
> --- Comment #1 from Behdad Esfahbod <freedesktop at behdad.org>  2008-06-11 16:48:16 PST ---
> Can you tell me which parts of those scripts is bash-specific?
Any instance of ! in an if will not work in sh.

For example (from cairo-1.6.4/src/check-dev.sh):

    if ! which nm 2>/dev/null >/dev/null; then

does not work in Solaris stock /bin/sh, but it will in bash.

That's the first bash-ism I came across in any of the scripts when 
trying to run the test suite; there are likely more.  I did not further 
explore; I just changed the #! invocation from /bin/sh to 
/usr/local/bin/bash on all of them.


Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the cairo-bugs mailing list