Syntax error: unexpected "("

Jmnote (토론 | 기여)님의 2020년 5월 21일 (목) 15:10 판 (새 문서: ==개요== ;<nowiki>syntax error: unexpected "("</nowiki> <source lang='console'> # cat a.sh ARR=("John Smith" "Jane Doe" "Mike Barnes" "Kevin Patterson") for VALUE in "${ARR[@]}"; d...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요

syntax error: unexpected "("
# cat a.sh
ARR=("John Smith" "Jane Doe" "Mike Barnes" "Kevin Patterson")
for VALUE in "${ARR[@]}"; do
        echo "[$VALUE]"
done
# sh a.sh
a.sh: line 1: syntax error: unexpected "("

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}