1. 程式人生 > >Error:Syntax error: redirection unexpected

Error:Syntax error: redirection unexpected

在安裝Android NKD後執行make-standalone-toolchain.sh時出現錯誤“make-standalone-toolchain.sh: 701: ./make-standalone-toolchain.sh: Syntax error: redirection unexpected”,同時執行時出現警告“WARNING: The shell running this script isn't bash. Although we try to avoid bashism in scripts, things can happen.”

開啟指令碼701行

for ABI in
$(tr ',' ' ' <<< $ABIS); do

 

經查,應為"<<<"的問題。在執行時直譯器指定為bash,則無錯誤。