Issue 2182: Mac OSX syntax error when initial source build/envsetup.sh
Status:  Invalid
Owner: ----
Closed:  Oct 2013
Reported by Treurm...@gmail.com, Oct 12, 2013
************************************************************
***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL *****
***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.    *****
***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS!  *****
************************************************************

Affected Version:

What steps will reproduce the problem?
1. Use Mac OSX
2. follow tutorial http://wiki.cyanogenmod.org/w/Build_for_maguro
3. When you have to 'source build/envsetup.sh' it will throw an error

What is the expected output? What do you see instead?

No confirmation, just a new line, instead a get the following error:

-bash: build/envsetup.sh: line 1260: syntax error near unexpected token `('
-bash: build/envsetup.sh: line 1260: `    local reports=(`adb shell ls /sdcard/bugreports | tr -d '\r'`)'

Please provide any additional information below.

When asking about this on the IRC channel i was advises to replace line 1260 with the following line:

local reports=$(adb shell ls /sdcard/bugreports | tr -d '\r')

This fixed the problem.
Oct 13, 2013
Project Member #1 bklarson@gmail.com
This issue tracker is for the Gerrit code review tool.
Status: Invalid