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

Top Page

Reply to this message
Author: John Wesley
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:
>
> 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



I think Edgy uses Dash as it's shell rather than Bash. But I have no idea
if that's causing your problem!

jonh