[Pkg-bluetooth-maintainers] Bug#534511: bluez: error with dash in initscript: "bluetoothd rfcomm[: 197: unexpected operator"

Teodor mteodor at gmail.com
Thu Jun 25 19:18:03 UTC 2009


Package: bluez
Version: 4.42-1
Severity: normal

The latest version shows these warnings on start/restart:\
| Starting bluetooth: bluetoothd rfcomm[: 197: unexpected operator
| [: 197: unexpected operator
| [: 197: unexpected operator
| .

At a fist look it seems that this construction is incorrect:
| start_rfcomm()
| {
|        if [ -x $RFCOMM ] && [ -f $RFCOMM_CONF ] ; then

That is "[ X ] && [ Y ]" should probably be replaced with "[ X -a Y ]".

I know that the original bug report was for another problem, but I thought to
send this report here because is related to the init script. Also, this should
confidered too:
| # checkbashisms /etc/init.d/bluetooth
| possible bashism in /etc/init.d/bluetooth line 159 (should be 'b = a'):
| 	if [ "$HIDD_ENABLED" == "1" ] ||
| possible bashism in /etc/init.d/bluetooth line 160 (should be 'b = a'):
| 			[ "$PAND_ENABLED" == "1" ] ||
| possible bashism in /etc/init.d/bluetooth line 161 (should be 'b = a'):
| 			[ "$DUND_ENABLED" == "1" ]; then

Thanks


-- System Information:
Debian Release: squeeze/sid
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bluez depends on:
ii  dbus                         1.2.14-3    simple interprocess messaging syst
ii  libbluetooth3                4.42-1      Library to use the BlueZ Linux Blu
ii  libc6                        2.9-13      GNU C Library: Shared libraries
ii  libdbus-1-3                  1.2.14-3    simple interprocess messaging syst
ii  libglib2.0-0                 2.20.3-1    The GLib library of C routines
ii  libnl1                       1.1-5       library for dealing with netlink s
ii  libusb-0.1-4                 2:0.1.12-13 userspace USB programming library
ii  lsb-base                     3.2-22      Linux Standard Base 3.2 init scrip
ii  makedev                      2.3.1-88    creates device files in /dev
ii  module-init-tools            3.9-2       tools for managing Linux kernel mo
ii  udev                         0.141-1     /dev/ and hotplug management daemo

bluez recommends no packages.

Versions of packages bluez suggests:
ii  python-dbus                   0.83.0-1   simple interprocess messaging syst
ii  python-gobject                2.16.1-1   Python bindings for the GObject li

-- no debconf information





More information about the Pkg-bluetooth-maintainers mailing list