
3 May
2012
3 May
'12
4:24 a.m.
On 03/05/12 09:19, Brian May wrote:
As soon as you start using array's, the script is no longer POSIX sh compliant, you have to use bash or zsh or something.
That's OK as it's a shell script one person (i.e. me), or possibly one other may ever run (once the RPMs are built then we should never need this again, but it's good to be able to automate just in case). It's only ever going to run on RHEL6 PPC64 anyway. :-)
Personally I think as soon as you start needing to use array's in shell scripting, that is a good sign that maybe something like Python might be more appropriate...
If I wanted to be told how to write my programs I'd use Ada.. ;-) cheers, Chris -- Chris Samuel : http://www.csamuel.org/ : Melbourne, VIC