Quote:
Originally Posted by
bakunin
Of course it is.
Of course it is possible to solve the problem in many ways, but I still don't see a way to dinamically create the entries of a
case command.
In bash there's
select command for this kind of things.
If I'm wrong, which is always extremely possible when the matter is shell scripting, I'd really appreciate a hint from you about the solution.
Quote:
Bash isn't a shell well suited to scripting at all IMHO and should be avoided at all costs.
My shells knowledge is so little that I can't discuss this topic.
But I'm a bit.. confused.
What was so wrong with my script?
And, of course, also in bash you can use an array as you've done in ksh (moreover, it had been my first think: but then select came to my mind, and it does the work, and it's much quicker. So why not use it, if bash is available?).
Quote:
I suspect you are on an AIX system [...]
LOL!
Of course you're speaking to the OP.
AIX... I'm not a sysadmin, nor my job is heavily computer related. So, AIX... (AKA "blood and tears", as someone says): I - personally - have never seen an AIX system.