[Pkg-ime-devel] Bug#701558: fcitx-bin: bashism in /bin/sh script

Raphael Geissert atomo64 at gmail.com
Sun Feb 24 13:12:09 UTC 2013


Package: fcitx-bin
Version: 4.2.7-1
Severity: serious
User: debian-release at lists.debian.org
Usertags: goal-dash

Hello maintainer,

While performing an archive wide checkbashisms (from the 'devscripts' 
package) check I've found your package containing a /bin/sh script making 
use of a bashism.

checkbashisms' output:
>possible bashism in ./usr/bin/fcitx-configtool line 72 (should be >word 
>2>&1):
>    if (kcmshell4 --list 2>/dev/null | grep ^kcm_fcitx &>/dev/null); then
>
>possible bashism in ./usr/bin/fcitx-configtool line 82 (should be >word 
>2>&1):
>    if which fcitx-config-gtk &>/dev/null; then
>
>possible bashism in ./usr/bin/fcitx-configtool line 88 (should be >word 
>2>&1):
>    if which fcitx-config-gtk3 &>/dev/null; then

Not using bash (or a Debian Policy conformant shell interpreter which 
doesn't provide such an extra feature) as /bin/sh is likely to lead to 
errors or unexpected behaviours.

You can find hints about how to fix bashisms at:
https://wiki.ubuntu.com/DashAsBinSh

Thank you,
Raphael Geissert



More information about the Pkg-ime-devel mailing list