[yocto] [poky] bash: oe-init-build-env: line 33: syntax error near unexpected token `elif'

Elvis Dowson elvis.dowson at gmail.com
Thu Apr 18 09:36:37 PDT 2013


On Apr 18, 2013, at 8:12 PM, Elvis Dowson <elvis.dowson at gmail.com> wrote:

> 
> On Apr 18, 2013, at 7:58 PM, Trevor Woerner <twoerner at gmail.com> wrote:
> 
>> On Thu, Apr 18, 2013 at 11:37 AM, Elvis Dowson <elvis.dowson at gmail.com> wrote:
>>> http://ares/gitweb/?p=tools/poky.git;a=blobdiff;f=oe-init-build-env;h=68af7b5193b73627cd6ebf6196adfa685a787c38;hp=67eddcd295bd9d1adac21fc4e97506fca05f4bfa;hb=813127247a1100b1abe179dfba25795560eac864;hpb=a468b0d5579148771da716eaf357e5d45fc3211c
>> 
>> Do you have a better link?
> 
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/oe-init-build-env?id=813127247a1100b1abe179dfba25795560eac864
> 
> I reverted the commit, but the error still persisted. It's something else, probably due to a recent update to Ubuntu 12.10. I tried reverting to known commit ids but all of them don't work.
> 
> My shell is correctly configured to use bash instead of dash.
> 
> When I ran the debug mode for the bash shell, I found out that the 
> 
> : command not found
> : command not found
> 
> errors were due to the new lines on line 2 and line 20. Deleting the new lines made the : command not found errors go away, but I get the following error with the older commit
> 
> bash: ./oe-init-build-env: line 45: syntax error: unexpected end of file
> 
> and the following error with the current master
> 
> bash: ./oe-init-build-env: line 33: syntax error near unexpected token `elif'
> 'ash: ./oe-init-build-env: line 33: `   elif [ -n "$ZSH_NAME" ]; then
> 
> Man, this is so un-expected!! :-)

Okay, false alarm, sorry about that. I noticed that when I pull the latest updates, something went wrong and there were a lot of modified files after the update in red. I did a git clean -df and git reset --hard, and it solved the problem. Don't know how that happened though, but problem fixed by resetting the git repo and cleaning all the dirty files.

Best regards,

Elvis Dowson


More information about the yocto mailing list