From: Jan Kiszka <jan.kiszka@domain.hid>
To: Xenomai-core@domain.hid
Subject: [Xenomai-core] [Fwd: Bug#471871: xenomai-runtime: bashism in /bin/sh script]
Date: Fri, 21 Mar 2008 21:24:15 +0100 [thread overview]
Message-ID: <47E4196F.2070303@domain.hid> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 71 bytes --]
Maybe someone with idle cycles left could have a look at this.
Jan
[-- Attachment #1.2: Bug#471871: xenomai-runtime: bashism in /bin/sh script.eml --]
[-- Type: message/rfc822, Size: 6009 bytes --]
From: Raphael Geissert <atomo64@domain.hid>
To: maintonly@domain.hid
Subject: Bug#471871: xenomai-runtime: bashism in /bin/sh script
Date: Thu, 20 Mar 2008 13:39:38 -0600
Message-ID: <200803201339.41302.atomo64@domain.hid>
Package: xenomai-runtime
Severity: important
Version: 2.4.2-2
User: debian-release@domain.hid
Usertags: goal-dash
Hello maintainer,
While performing an archive wide checkbashisms (from the 'devscripts' package)
check I've found your package containing several /bin/sh scripts making
use of a bashism.
checkbashisms' output:
> possible bashism in ./usr/bin/xeno-load line 130 (should be >word 2>&1):
> $sudo kill -SIGINT $children_pids >& /dev/null
> possible bashism in ./usr/bin/xeno-info line 77 (brace expansion):
> ls -l /usr/lib/lib{g,stdc}++.so 2>/dev/null | awk -F. \
> possible bashism in ./usr/bin/xeno-test line 63 (local foo=bar):
> local neededApplets="awk basename cut date dd dirname egrep grep head
> possible bashism in ./usr/bin/xeno-test line 65 (local foo=bar):
> local foundAll=1
> possible bashism in ./usr/bin/xeno-test line 81 (local foo=bar):
> local foundAll=1
> possible bashism in ./usr/bin/xeno-test line 114 (local foo=bar):
> local jobsct=$1;
> possible bashism in ./usr/bin/xeno-test line 123 (cnt=$((cnt + 1)) does not
> work in dash): jobsct=$((jobsct-1));
> possible bashism in ./usr/bin/xeno-test line 162 (local foo=bar):
> local filter=" grep -E '$whatconf'"
> possible bashism in ./usr/bin/xeno-test line 277 (local foo=bar):
> local file=$1
> possible bashism in ./usr/bin/xeno-test line 382 (should be 'b = a'):
> if test "$res" == "0" ; then
Not using bash 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
https://wiki.ubuntu.com/DashAsBinSh
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
HINT: sometimes these bugs are already fixed in Ubuntu, look at the PTS
[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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
next reply other threads:[~2008-03-21 20:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-21 20:24 Jan Kiszka [this message]
2008-03-22 15:54 ` [Xenomai-core] [Fwd: Bug#471871: xenomai-runtime: bashism in /bin/sh script] Roland Stigge
2008-03-23 16:45 ` Gilles Chanteperdrix
2008-03-24 13:51 ` Gilles Chanteperdrix
2008-03-24 14:14 ` Gilles Chanteperdrix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47E4196F.2070303@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=Xenomai-core@domain.hid \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.