"Syntax error: bad substitution"

Talk about everything.
Post Reply
multani

"Syntax error: bad substitution"

Post by multani » Wed Jul 06, 2005 18:55

Hello,

I have installed some games on my computer, using your liflg installer (Unreal Tournament, Warzone, glest, etc.), and i'm facing a strange problem :

Code: Select all

jon@deb-athlon:~$ glest 
/usr/local/bin/glest: 29: Syntax error: Bad substitution
jon@deb-athlon:~$ warzone 
/usr/local/bin/warzone: 29: Syntax error: Bad substitution
jon@deb-athlon:~$ ut
/usr/local/bin/ut: 29: Syntax error: Bad substitution
jon@deb-athlon:~$
The line which have a problem is :

Code: Select all

    if [ -L "$path" ]; then
        ll="$(LC_ALL=C ls -l "$path" 2> /dev/null)" &&
        echo "${ll/* -> }"             <=================
    else
I tried to comment it (and put a echo "." to be ok), but game failed to load (it seems it doesn't find the game directory :?: )

My configuration :
Debian Sid x86-32 up-to-date
Amd64 3000+

It has been a long since I play a game, but I remember that when I have installed them (some months ago for UT if I remember), I didn't have any problem :?

Any clue ?

Thanks ;) (btw, good job ;) )

kratz00
liflg member
Posts: 1658
Joined: Fri Oct 22, 2004 16:23

Post by kratz00 » Wed Jul 06, 2005 22:18

are using bash?

multani

Post by multani » Thu Jul 07, 2005 9:52

Yep.

kratz00
liflg member
Posts: 1658
Joined: Fri Oct 22, 2004 16:23

Post by kratz00 » Thu Jul 07, 2005 10:43

really strange

what version of bash do you use?
whats the output of "file `which sh`"?

multani

Post by multani » Thu Jul 07, 2005 19:05

Well, you seem to point the problem :

Code: Select all

jon@deb-athlon:~$ bash --version
GNU bash, version 3.00.16(1)-release (i386-pc-linux-gnu)
Copyright (C) 2004 Free Software Foundation, Inc.
jon@deb-athlon:~$ file `which sh`
/bin/sh: symbolic link to `dash'
jon@deb-athlon:~$
I would like to remove dash, but my kernel-image depend on it so ... ;)

Anyway, i have changed the link from dash to bash, and it seems to run better now :)

kratz00
liflg member
Posts: 1658
Joined: Fri Oct 22, 2004 16:23

Post by kratz00 » Fri Jul 08, 2005 14:20

never heard of dash before (for all the others http://packages.debian.org/unstable/shells/dash.html)

strange that you are the first guy using debian who reported this problem :)

maybe you can build a kernelimage without dash dependence

Post Reply