[Hampshire] Shell script not working under Ubuntu Edgy / Fei…

Top Page
Author: Tony Whitmore
Date:  
To: hampshire
Subject: [Hampshire] Shell script not working under Ubuntu Edgy / Feisty

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x57f37100.hantslug.org.uk.26378': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Fri May 4 08:15:32 2007 BST
gpg: using DSA key 7920DB2171B98B64
gpg: Can't check signature: No public key
Hi,

I've got a shell script (for an installer) that runs fine on Ubuntu Dapper,
but doesn't run on Ubuntu Edgy / Feisty. The line causing the issue is the
penultimate one of:

        if [ $AGENTS_DIR -ne 1 ]; then
            while [ "$VCOUNT" -lt "$FILESYS_COUNT" ]
            do
                echo ""
                printf "%-42s" "$INST_MSG_102 ${FILESYS_GROUP[$VCOUNT]}"
                echo -e "                    ==> [\c"


When it's run, it returns:
# sh install
install: 299: Syntax error: Bad substitution

I've compared the environment variables between Dapper and Edgy using meld and
can't see anything glaringly different that would cause this not to work.

Does anyone know any significant changes in shell behaviour between Dapper and
Edgy / Feisty that might cause this behaviour?

Tony