12
rated 0 times
[
12]
[
0]
/ answers: 1 / hits: 46783
/ 2 Years ago, fri, october 21, 2022, 12:59:35
When I’m using for like
for i in 1 2 3 4 5
then my file contains #!/bin/sh
at the top.
But when I’m using
for(( i = 0; i<=5; i++))
then it is showing error
Syntax error: Bad for loop variable
and running properly when I remove shebang. Please tell me the reason behind this.
More From » scripts