forwarded 530116 Jed Wing <jed...@ugcs.caltech.edu>
thanks

Hi Jed,

Please look at this bug and please fix it with next release of libchm.
I will fix and upload it in Debian meanwhile.

Thanks
~ Kartik

---------- Forwarded message ----------
From: Raphael Geissert <atom...@gmail.com>
Date: Sat, May 23, 2009 at 11:20 AM
Subject: Bug#530116: libchm1: bashism in /bin/sh script
To: mainto...@bugs.debian.org


Package: libchm1
Severity: minor
Version: 2:0.39-10
User: debian-rele...@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/share/doc/libchm1/mozilla_helper.sh line 11 (echo
> -e):
> echo -e "<html><head>\n<title>$*</title>" >$HTTP
> possible bashism in ./usr/share/doc/libchm1/mozilla_helper.sh line 12 (echo
> -e):
> echo -e "<meta http-equiv='refresh' content=\"5;
> possible bashism in ./usr/share/doc/libchm1/mozilla_helper.sh line 14 (echo
> -e):
> echo -e "<title>working</title></head>" >>$HTTP
> possible bashism in ./usr/share/doc/libchm1/mozilla_helper.sh line 15 (echo
> -e):
> echo -e "<body>please wait while I unpack :$*:<br>working...<br><br>"
> possible bashism in ./usr/share/doc/libchm1/mozilla_helper.sh line 17 (echo
> -e):
> echo -e "chm_http reports:<br>" >>$HTTP
> possible bashism in ./usr/share/doc/libchm1/mozilla_helper.sh line 19 (echo
> -e):
> echo -e "</body></html>" >>$HTTP


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.
Please be aware that although bash is currently the default /bin/sh there was
a release goal for Lenny to make dash the default /bin/sh[1], and has been
proposed for squeeze as well[2].

If you want more information about dash as /bin/sh, you can read:
http://lists.debian.org/debian-release/2008/01/msg00189.html

For more information supporting this goal please refer to Debian Policy,
section 10.4, at:
http://www.debian.org/doc/debian-policy/ch-files.html#s-scripts

Hints about how to fix bashisms:
Sometimes these bugs are already fixed in Ubuntu, look at the PTS.
If not already fixed you can read:
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'.

[1]http://release.debian.org/lenny/goals.txt
[2]http://lists.debian.org/debian-release/2009/04/msg00133.html

Thank you,
Raphael Geissert

-- 
 Cheers,
 Kartik Mistry | 0xD1028C8D | IRC: kart_
 Debian GNU/Linux Developer
 Blog.en: ftbfs.wordpress.com
 Blog.gu: kartikm.wordpress.com



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to