mysqld_safe in 5.7.19 contains a bashism and fails on systems where /bin/sh is not bash

Bug #1722973 reported by James Brown on 2017-10-12
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC
Fix Committed
High
EvgeniyPatlan
5.7
Fix Committed
High
EvgeniyPatlan

Bug Description

mysqld_safe on PXC 5.7.19-29.22 is marked as #!/bin/sh at the top of the file, but contains a bashism on line 221 which causes it to fail on systems where /bin/sh is not bash

Specifically, the eval_log_error function uses the > operator inside the single-bracket test construct. The -gt operator should be used instead.

This bug is not present on 5.6.37 or 5.7.18.

This was only tested with the tarball version. I haven't looked at the RPMs or Debs.

Changed in percona-xtradb-cluster:
assignee: nobody → EvgeniyPatlan (evgeniy-patlan)
Changed in percona-xtradb-cluster:
status: New → Fix Committed
importance: Undecided → High

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXC-1033

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers