what is the name and syntax of the construction ((..)) in example below?
for ((i=1;i<10;i++)) do echo $i; done
it has strange variable i
where are other constructions for numeric cycling in shells?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In section §3.2.4.2 of the ‘Bash Reference Manual’ (4.0), the ‘
((...))‘ notation is classified as as an arithmetic expression. It is closely related to the ‘$((...))‘ notation described in §3.5.5 as Arithmetic Expansion. And §3.2.4.1 ‘Looping Constructs’ says: