![](https://seccdn.libravatar.org/avatar/e0854175dfba18e9adc5a9e99f843401.jpg?s=120&d=mm&r=g)
On Mon, 30 Mar 2009, David Haller wrote:-
Hello,
Hello
No it (mine) can't.
$ bash -c 'for i in {1..120}; do echo "$i"; done; echo $BASH_VERSION' {1..120} 2.03.0(1)-release
You must be using an old and a rather unsupported version of SuSE to still be using bash 2.03. If I was to guess which version, I think it's probably one of the 6.x releases, as the supplied version when SuSE 7.0 was released was bash 2.04. Somewhere between 7.0 and 8.1, the supplied version was updated to v2.05. Bash 3.0, which supports ranges, was supplied with SuSE 9.2, and so anyone using a version released within the last 4 years would be able to use it rather than relying on having to use seq.
$ ksh -c 'for i in {1..120}; do echo "$i"; done; echo $KSH_VERSION' {1..120} @(#)PD KSH v5.2.14 99/07/13.2 $ ash -c 'for i in {1..120}; do echo "$i"; done;' {1..120} $ zsh -c 'for i in {1..120}; do echo "$i"; done; echo $ZSH_VERSION' 1 [..] 120 3.0.5 $
I'm not surprised it didn't work with those shells as the {..} construct is a (v3.0+) bash-ism.
Don't assume everyone has the same shell as you have.
I didn't. I tested using an old 9.3 installation, which has been out of support for almost 2 years and still waiting for me to update, and it worked there.
And the question was not shell-, but terminal-specific.
In this instance it was shell specific. The OP mentioned he wanted to know how to position test at specific points using a specific shell, namely bash. Regards, David Bolt -- Team Acorn: http://www.distributed.net/ OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s openSUSE 10.3 32b | openSUSE 11.0 32b | | openSUSE 10.3 64b | openSUSE 11.0 64b | openSUSE 11.1 64b | openSUSE 10.3 PPC | RISC OS 3.6 | RISC OS 3.11 | TOS 4.02 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org