Results 1 to 4 of 4

Thread: /usr/bin/cube: 29: Syntax error: Bad substitution

  1. #1
    Join Date
    Jan 2005
    Location
    Lexington, Kentucky
    Beans
    150
    Distro
    Ubuntu Karmic Koala (testing)

    /usr/bin/cube: 29: Syntax error: Bad substitution

    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.

  2. #2
    Join Date
    Apr 2006
    Location
    The Netherlands
    Beans
    23
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: /usr/bin/cube: 29: Syntax error: Bad substitution

    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
    Code:
    if [ -L "$path" ]; then
       ll="$(LC_ALL=C ls -l "$path" 2> /dev/null)" &&
       echo "${ll/* -> }"
    to:

    Code:
    if [ -L "$path" ]; then
       echo "/your/game/path/here/cube"
    the readlink() routine is used to determine where the "real" cube script / directory is.

  3. #3
    Join Date
    Jun 2006
    Location
    Minneapolis, MN
    Beans
    35
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: /usr/bin/cube: 29: Syntax error: Bad substitution

    FerGeCo,

    Thanks for this fix! I just used it to fix ioquake3. It works exactly the same.

  4. #4
    Join Date
    Jan 2008
    Location
    Earth
    Beans
    23
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: /usr/bin/cube: 29: Syntax error: Bad substitution

    I did what you said, but now i get
    88: ./linux_client: not found
    I checked the folder, and i clearly see the linux_client. Any suggestions?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •