Bug#314552: zaptel: bashism in postinst
Angus Lees
Angus Lees <gus@debian.org>, 314552@bugs.debian.org
Fri, 17 Jun 2005 11:21:20 +1000
Package: zaptel
Version: 1:1.0.7-4.1
Severity: important
zaptel.postinst contains this piece of code:
N=1;
while (( $N < 250 )) ; do
rm -f /dev/zap/$N;
mknod /dev/zap/$N c 196 $N;
N=`expr $N + 1`
done
The (( ... )) construct is bash-specific. A simple posix-compatible
replacement is:
...
while [ $N -lt 250 ]; do
...
- Gus
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (890, 'testing'), (89, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.8-1-686
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)
Versions of packages zaptel depends on:
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii libnewt0.51 0.51.6-23 Not Erik's Windowing Toolkit - tex
-- no debconf information