fcitx / mozc

Mozc - a Japanese Input Method Editor designed for multi-platform
Other
136 stars 15 forks source link

Fix install_fcitx5_data when system sh is dash #32

Closed danielzgtg closed 1 year ago

danielzgtg commented 1 year ago

Ubuntu has dash instead of bash as /bin/sh because it wanted to speed up system startup. This causes incompatibilities when we assume that sh is bash and continue to use bashisms. This problem is solved by explicitly requesting bash for the one script that needs it.

Before

$ ../scripts/install_fcitx5_bazel
../scripts/install_fcitx5_data: 8: Bad substitution
$

After

$ ../scripts/install_fcitx5_bazel
$