[Debian-olpc-devel] Bug#650190: /usr/bin/sugar: syntax error on line 3: && in a [

Tzafrir Cohen tzafrir at debian.org
Sun Nov 27 15:02:04 UTC 2011


Package: sugar-session-0.90
Version: 0.90.3-1
Severity: minor

Dear Maintainer,
*** Please consider answering these questions, where appropriate ***

I got a minor syntax error from attempting to start sugar. Line 3 has:

  if [ "$(id -u)" -eq 0 && "$(id -ru)" -eq 0 ] ; then

If you want to use '&&', you have to close the '[' before:

  if [ "$(id -u)" -eq 0 ] && [ "$(id -ru)" -eq 0 ] ; then


Note: the real issue turned out to be #644010, which renders the package
unusable. Woraround: grab source package. Remove specific dependencies on
python 2.6, rebuild and install.

*** End of the template - remove these lines ***


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

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





More information about the Debian-olpc-devel mailing list