← Back to team overview

touch-packages team mailing list archive

[Bug 1368084] Re: phablet-shell: 72: [: /bin/bash:: unexpected operator, tries to read /root/.bash_profile

 

fixed in the latest android-tools-adbd

** Changed in: phablet-tools (Ubuntu)
       Status: New => Invalid

** Changed in: android-tools (Ubuntu)
       Status: New => Fix Released

** Changed in: android-tools (Ubuntu)
   Importance: Undecided => High

** Changed in: android-tools (Ubuntu)
     Assignee: (unassigned) => Oliver Grawert (ogra)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to android-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1368084

Title:
  phablet-shell: 72: [: /bin/bash:: unexpected operator, tries to read
  /root/.bash_profile

Status in “android-tools” package in Ubuntu:
  Fix Released
Status in “phablet-tools” package in Ubuntu:
  Invalid

Bug description:
  Recent phablet-shell (r307) gives a lot of error messages:

  $ ~/ubuntu/phablet-tools/phablet-shell  
  /home/martin/ubuntu/phablet-tools/phablet-shell: 72: [: /bin/bash:: unexpected operator
  /bin/bash: /root/.bash_profile: Permission denied
  /home/martin/.ssh/known_hosts updated.
  Original contents retained as /home/martin/.ssh/known_hosts.old
  9 KB/s (395 bytes in 0.040s)
  /bin/bash: /root/.bash_profile: Permission denied
  /bin/bash: /root/.bash_profile: Permission denied
  /bin/bash: /root/.bash_profile: Permission denied

  The syntax error comes from

      ADBUID="$(adb shell "id -u"|tr -d '\n')"
      if [ $ADBUID -eq 0 ]; then

  as the shell command includes all these errors about
  /root/.bash_profile:

  $ adb shell 'id -u'
  /bin/bash: /root/.bash_profile: Permission denied
  32011

  Supposedly the recent changes to adbd forgot to set a proper $HOME or
  something similar?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/android-tools/+bug/1368084/+subscriptions


References