Percona Server with XtraDB

install_tests.sh fails due to bashism

Reported by Laurynas Biveinis on 2011-05-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server
Undecided
Oleg Tsarev
5.1
Undecided
Oleg Tsarev
5.5
Undecided
Oleg Tsarev

Bug Description

Running install_tests.sh directly or by make tests fails with

laurynas@laurynas-ThinkPad-T410:~/percona/src/atomic-fixes-5.1$ ./install_tests.sh
./install_tests.sh: 29: let: not found
./install_tests.sh: 31: current: parameter not set

The first line of the script say #!/bin/sh . I suspect that "let" is bash-specific construct. If the script is run with bash, then it runs OK:
bash ./install_tests.sh
...tons of OK output...

I believe this is introduced by the fix to bug 782391.

Stewart Smith (stewart) wrote :

So this appears to be fixed in 5.1 trunk (by Nacho in release branch). So perhaps we should mark as fix released and assign to next milestone (5.1.58)

Is requiring bash the best fix? Oleg made a fix that rewrites bash-specific construct in sh.

Stewart Smith (stewart) wrote :

that's okay too.... either way is okay with me (as long as it works on all our supported platforms :)

Oleg Tsarev (tsarev) on 2011-06-13
Changed in percona-server:
assignee: nobody → Oleg Tsarev (tsarev)
status: New → In Progress
Oleg Tsarev (tsarev) on 2011-06-13
Changed in percona-server:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers