View Full Version : /usr/bin/cube: 29: Syntax error: Bad substitution
dude2425
October 15th, 2005, 11:56 PM
I've been getting this particular error for a couple days as far as I've noticed, and have no idea how to fix it. The only two games I've noticed it on so far is Cube and Nexuiz. I've already tryed to reinstall the games but to no avail, and now I'm completely out of ideas.
Any help would be nice, as I'm trying to prove to my little bro (*cough*nonbeliever*cough*) that there are games worth playing on Linux.
FerGeCo
October 6th, 2006, 05:14 PM
Hey,
It's a little late .. but perhaps this will help someone in the future:
I had the same problem .. it's because we use the dash shell..
You can alter the script:
First do a : ls -l /usr/local/bin/cube and copy the symlink text .. the part after -> and do the following:
Change
if [ -L "$path" ]; then
ll="$(LC_ALL=C ls -l "$path" 2> /dev/null)" &&
echo "${ll/* -> }"
to:
if [ -L "$path" ]; then
echo "/your/game/path/here/cube"
the readlink() routine is used to determine where the "real" cube script / directory is.
billyfoxtrot
October 13th, 2006, 04:36 AM
FerGeCo,
Thanks for this fix! I just used it to fix ioquake3. It works exactly the same.
matthewschwimmer
February 1st, 2008, 09:52 PM
I did what you said, but now i get 88: ./linux_client: not foundI checked the folder, and i clearly see the linux_client. Any suggestions?
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.