[Pkg-kde-extras] Bug#581078: digikam: bashism in /bin/sh script

Raphael Geissert atomo64 at gmail.com
Tue May 11 05:00:39 UTC 2010


Package: digikam
Severity: important
Version: 2:1.2.0-2
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/cleanup_digikamdb line 155 (should be >word
> 2>&1):
> cd "$db_dir" 2&> /dev/null
> possible bashism in ./usr/bin/cleanup_digikamdb line 158 (echo -e):
>     echo -e "$output_str_location:\t$(pwd)"
> possible bashism in ./usr/bin/cleanup_digikamdb line 162 (echo -e):
>	  echo -ne "${db_out:-"\\t"}\t$db ... "
> possible bashism in ./usr/bin/cleanup_digikamdb line 172 (echo -e):
>     echo -e "\n=> Finished";
> possible bashism in ./usr/bin/cleanup_digikamdb line 174 (echo -e):
>     echo -e "\nI was not able to enter the database folder.\n"


Not using bash (or a Debian Policy compliant shell interpreter that doesn't
provide such an extra feature) as /bin/sh is likely to lead to errors or
unexpected behaviours. Please be aware that dash is now the default /bin/sh.

Hints about how to fix bashisms can be found at:
https://wiki.ubuntu.com/DashAsBinSh

If you still don't know how to fix the bashisms don't hesitate to reply to
this email, or tag the bug as 'help'.

Thank you,
Raphael Geissert





More information about the pkg-kde-extras mailing list