[cl-debian] Bug#445863: bashism in /usr/lib/emacsen-common/packages/install/slime

Package: slime Version: 1:20070927-2 Severity: normal sh points to dash and the following is displayed during an installation (with apt): $ apt install <something> ... install/slime: Handling install for emacsen flavor emacs21 [: 44: ==: unexpected operator rm: cannot remove `/usr/share/emacs21/site-lisp/slime/ChangeLog': No such file or directory [: 55: ==: unexpected operator Loading 00debian-vars... ... $ grep -C3 == /usr/lib/emacsen-common/packages/install/slime # in case of a failed installation .el symlinks are left behind, remove them if [ -d "${ELCDIR}" ] ; then if [ "${ELCDIR}" == "" ] ; then echo ELCDIR is empty, emergency stop exit 1 else -- fi if [ -d "${ELCDIR}/contrib" ] ; then if [ "${ELCDIR}" == "" ] ; then echo ELCDIR is empty, emergency stop exit 1 else == is not an operator for /usr/bin/[. It is one for the bash keyword [[. [ after an if in bash probably also is interpreted directly by bash.

tag 445863 + patch thanks Scribit Géraud Meyer dies 08/10/2007 hora 19:54:
== is not an operator for /usr/bin/[. It is one for the bash keyword [[. [ after an if in bash probably also is interpreted directly by bash.
The == operator seems the only bashism to me. if [ "a" = $1 ]; then ... is perfectly accepted by dash. So the correction should just be: diff -r 4f0b69b9911b debian/emacsen-install --- a/debian/emacsen-install Tue Oct 09 17:48:14 2007 +0200 +++ b/debian/emacsen-install Tue Oct 09 17:52:57 2007 +0200 @@ -32,7 +32,7 @@ fi # in case of a failed installation .el symlinks are left behind, remove them if [ -d "${ELCDIR}" ] ; then - if [ "${ELCDIR}" == "" ] ; then + if [ "${ELCDIR}" = "" ] ; then echo ELCDIR is empty, emergency stop exit 1 else Quickly, Pierre -- nowhere.man@levallois.eu.org OpenPGP 0xD9D50D8A

Processing commands for control@bugs.debian.org:
tag 445863 + patch Bug#445863: bashism in /usr/lib/emacsen-common/packages/install/slime There were no tags set. Tags added: patch
thanks Stopping processing here.
Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database)

Your message dated Fri, 26 Oct 2007 05:32:06 +0000 with message-id <E1IlHni-0003Xr-Gn@ries.debian.org> and subject line Bug#445863: fixed in slime 1:20070927-3 has caused the attached Bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database)
participants (3)
-
Géraud Meyer
-
owner@bugs.debian.org
-
Pierre THIERRY