Bash for loop not working
I have bash 4.0. I used the following for loop example, but all it outputs is "{1..10} instead of the actual numbers one through ten. why?
Code:
for a in {1..10} |
Code:
[mherring@mystical play]$ for a in $(seq 1 10); do echo $a; done |
Quote:
|
I actually made a script and cut and pasted your code into it. Works fine.
|
Quote:
Code:
1 2 3 4 5 6 7 8 9 10 |
First I'd check if braceexpand option is disabled for some reason:
Code:
set -o | grep braceexpand |
All times are GMT -5. The time now is 04:13 PM. |