From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ralph Alvy Subject: Re: Syntax error: Bad substitution Date: Sat, 28 Oct 2006 17:14:55 -0700 Message-ID: References: <20061028225657.GA18195@bluesong.van.maves.ca> Mime-Version: 1.0 Content-Transfer-Encoding: 7Bit Return-path: Sender: linux-msdos-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-msdos@vger.kernel.org Matthew Clarke wrote: > Fri, Oct 27, 2006 at 08:32:32PM -0700, Ralph Alvy may have written: > >> I'm getting the following error when running dosemu 1.2.2 under a newly >> installed Kubuntu 6.10: >> >> ./xdosemu: 86: Syntax error: Bad substitution >> >> What might be going on here? > > That's an error message from your shell. It doesn't like something about > line 86 of the "xdosemu" shell script. What does that line of that script > look like (I don't have a dosemu I can look at right now)? > > To get more information, you could turn on the shell's tracing mode; for > Bourne shells, you can change: > > #! /bin/sh > > to > > #! /bin/sh -x > > or add a "set -x" command into the script. > > Matt. 84 -install) 85 INSTALL=1 86 if [ -n "$2" -a "${2:0:1}" != "-" ]; then 87 PROPRIETARY=$2 This is the only distro I've seen this happen, and I use dosemu 1.2.2 under Slackware 11, Arch Current, Debian Testing, Mepis 6, and Fedora Core 5.