"Syntax error: unexpected "(""의 두 판 사이의 차이

 
1번째 줄: 1번째 줄:
==개요==
==개요==
{{소문자}}
;<nowiki>syntax error: unexpected "("</nowiki>
;<nowiki>syntax error: unexpected "("</nowiki>



2020년 5월 21일 (목) 15:33 기준 최신판

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 "("

# cat a.sh
set -- "John Smith" "Jane Doe" "Mike Barnes" "Kevin Patterson"
while [ $# -gt 0 ]; do
        echo [$1]
        shift;
done
# sh a.sh
[John Smith]
[Jane Doe]
[Mike Barnes]
[Kevin Patterson]

2 같이 보기[ | ]

3 참고[ | ]

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