• Is there a specific reason why the indexname must be larger than 2 characters for the script to work?

    I have a system where I can't change indexes as they are created (and maintained) by a client program (NAVISION) and are named $1, $2, etc...

    I can see that your script conditions on the size, but why? Is it safe just to lower the requirement to 1?