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

Top Page

Reply to this message
Author: Graham Bleach
Date:  
To: Tony Whitmore, Hampshire LUG Discussion List
CC: 
Subject: Re: [Hampshire] Shell script not working under Ubuntu Edgy / Feisty
On 04/05/07, Tony Whitmore <tony@???> wrote:
>         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


The only thing I have to add to previous answers is that it's using
bash arrays, which don't exist in real bourne shells.

G