Your message dated Mon, 02 Mar 2009 22:10:47 +0100
with message-id <[email protected]>
and subject line Closing bug due to package removal
has caused the Debian Bug report #489672,
regarding xdialog: bashism in /bin/sh script
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
489672: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=489672
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: xdialog
Severity: important
Version: 2.3.1-2
User: [email protected]
Usertags: goal-dash

Hello maintainer,

While performing an archive wide checkbashisms (from the 'devscripts' package) 
check I've found your package containing one or more /bin/sh scripts making 
use of bashisms.

checkbashisms' output:
> possible bashism in ./usr/share/doc/xdialog/examples/logbox2 line 42
> (echo -e): 
> echo -e "\\033[1;31mThis is a red foreground text." >>$LOGFILE
> possible bashism in ./usr/share/doc/xdialog/examples/logbox2 line 45
> (echo -e): 
> echo -e "\\033[1;38mRevert to normal text." >>$LOGFILE
> possible bashism in ./usr/share/doc/xdialog/examples/logbox2 line 48
> (echo -e): 
> echo -e "\\033[1;42mThis is a green background text." >>$LOGFILE
> possible bashism in ./usr/share/doc/xdialog/examples/logbox2 line 51
> (echo -e): 
> echo -e "\\033[1;48mRevert to normal text." >>$LOGFILE
> possible bashism in ./usr/share/doc/xdialog/examples/logbox2 line 54
> (echo -e): 
> echo -e "And now a blue text\\033[1;34;46m on cyan background." >>$LOGFILE
> possible bashism in ./usr/share/doc/xdialog/examples/logbox2 line 56
> (echo -e): 
> echo -e "\\033[1;38;48mRevert to normal text." >>$LOGFILE
> possible bashism in ./usr/share/doc/xdialog/examples/xlock-wrapper line 25
> ('((' should be '$(('): 
> if (( $ret != 0 )) ; then
> possible bashism in ./usr/share/doc/xdialog/examples/Xmessage line 125 ('(('
> should be '$(('): 
>       while (( $TIMEOUT > 0 )) ; do
> possible bashism in ./usr/share/doc/xdialog/examples/Xmessage line 131
> (let ...): 
>               let TIMEOUT=$TIMEOUT-1
> possible bashism in ./usr/share/doc/xdialog/examples/logbox line 40
> (echo -e): 
> echo -e "\\033[1;31mThis is a red foreground text." >>$LOGFILE
> possible bashism in ./usr/share/doc/xdialog/examples/logbox line 43
> (echo -e): 
> echo -e "\\033[1;42mThis is a green background text." >>$LOGFILE
> possible bashism in ./usr/share/doc/xdialog/examples/logbox line 48
> (echo -e): 
> echo -e "And now a blue text\\033[1;34;46m on cyan background." >>$LOGFILE
> possible bashism in ./usr/share/doc/xdialog/examples/set-time line 9
> ('function' is useless): 
> function abort() {
> possible bashism in ./usr/share/doc/xdialog/examples/set-time line 27
> (should be 'b = a'): 
>       if [ "$UTC" == "UTC" ] ; then
> possible bashism in ./usr/share/doc/xdialog/examples/set-time line 33
> (should be 'b = a'): 
>               if [ "$UTC" == "no" ] || [ "$UTC" == "false" ] ; then
> possible bashism in ./usr/share/doc/xdialog/examples/set-time line 53 ('(('
> should be '$(('): 
> if (( $? != 0 )) ; then
> possible bashism in ./usr/share/doc/xdialog/examples/set-time line 62 ('(('
> should be '$(('): 
> if (( $? != 0 )) ; then
> possible bashism in ./usr/share/doc/xdialog/examples/set-time line 74 ('(('
> should be '$(('): 
> if (( $? == 0 )) ; then
> possible bashism in ./usr/share/doc/xdialog/examples/set-time line 79 ('(('
> should be '$(('): 
> if (( $? == 0 )) ; then
> possible bashism in ./usr/share/doc/xdialog/examples/kernel line 7
> ('function' is useless): 
> function check_error() {
> possible bashism in ./usr/share/doc/xdialog/examples/kernel line 9 ('(('
> should be '$(('): 
>       if (( $ret != 0 )) ; then
> possible bashism in ./usr/share/doc/xdialog/examples/kernel line 30 ('(('
> should be '$(('): 
> if (( $? == 0 )) ; then
> possible bashism in ./usr/share/doc/xdialog/examples/kernel line 40 ('(('
> should be '$(('): 
>       if (( $? == 0 )) ; then
> possible bashism in ./usr/share/doc/xdialog/examples/kernel line 95 ('(('
> should be '$(('): 
> if (( $? == 0 )) ; then
> possible bashism in ./usr/share/doc/xdialog/examples/kernel line 106 ('(('
> should be '$(('): 
>               if (( $? == 0 )) ; then
> possible bashism in ./usr/share/doc/xdialog/examples/install-wrapper line 15
> ('function' is useless): 
> function errors() {
> possible bashism in ./usr/share/doc/xdialog/examples/install-wrapper line 16
> ('((' should be '$(('): 
>       if (( $? != 0 )) ; then
> possible bashism in ./usr/share/doc/xdialog/examples/install-wrapper line 20
> ('((' should be '$(('): 
>               if (( $? == 0 )) ; then
> possible bashism in ./usr/share/doc/xdialog/examples/install-wrapper line 43
> ('((' should be '$(('): 
> if (( $? != 0 )) ; then
> possible bashism in ./usr/share/doc/xdialog/examples/install-wrapper line 51
> (should be 'b = a'): 
>       if [ "$DIALOG" == "" ] && [ -d $i ] ; then
> possible bashism in ./usr/share/doc/xdialog/examples/install-wrapper line 54
> (should be 'b = a'): 
>       if [ "$CDIALOG" == "" ] && [ -d $i ] ; then
> possible bashism in ./usr/share/doc/xdialog/examples/install-wrapper line
> 104 (should be 'b = a'): 
>       if [ "$GDIALOG" == "" ] && [ -d $i ] ; then
> possible bashism in ./usr/share/doc/xdialog/examples/install-wrapper line
> 107 (should be 'b = a'): 
>       if [ "$XDIALOG" == "" ] && [ -d $i ] ; then
> possible bashism in ./usr/share/doc/xdialog/examples/install-wrapper line
> 115 ('((' should be '$(('): 
>       if (( $? == 0 )) ; then
> possible bashism in ./usr/share/doc/xdialog/examples/infobox2 line 13
> (unsafe echo with backslash): 
> (sleep 2;echo "XXX";echo "New";echo "\\n";echo "message";echo "XXX";sleep
> 2;echo "XXXX") | \ 
> possible bashism in ./usr/share/doc/xdialog/examples/gauge line 6 (unsafe
> echo with backslash): 
> echo "XXX" ; echo "The new" ; echo "\\n" ; echo "message"; echo "XXX"

Not using bash (or a Debian Policy conformant shell interpreter which does 
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's a 
release goal for Lenny to make dash the default /bin/sh[1].

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 please refer to the Debian Policy section 10.4 supporting 
this argument 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

[1]http://release.debian.org/lenny/goals.txt

Thank you,
-- 
Atomo64 - Raphael

Please avoid sending me Word, PowerPoint or Excel attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html



--- End Message ---
--- Begin Message ---
Hi!

The package xdialog got removed recently from Debian.  So I close the
bug bugs affecting bugs affecting xdialog.

Dear submitter, thanks for reporting the bug and sorry for being able to
fix it to your convenience.


Best regards,
  Alexander

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to