0

I can't figure out what's going on here.

[user:#]$ for i in {1..5}; do echo "$i_test"; done





[user:#]$ for i in {1..5}; do echo "$i-test"; done
1-test
2-test
3-test
4-test
5-test

Why does the first one not work, but the second one does? It seems that, whatever it is, something weird is going on with the underscore if it follows the variable.

  • Thanks!! Sorry about that. Going to close this question. – user3447014 Jan 31 at 1:46

Browse other questions tagged or ask your own question.