Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Mar 2000 09:00:40 -0600
From:      Chris Costello <chris@calldei.com>
To:        Max Khon <fjoe@iclub.nsu.ru>
Cc:        Sheldon Hearn <sheldonh@uunet.co.za>, hackers@FreeBSD.ORG
Subject:   Re: empty lists in for
Message-ID:  <20000306090040.C4990@holly.calldei.com>
In-Reply-To: <Pine.BSF.4.21.0003061423380.96696-100000@iclub.nsu.ru>
References:  <20000305234210.A4990@holly.calldei.com> <Pine.BSF.4.21.0003061423380.96696-100000@iclub.nsu.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, March 06, 2000, Max Khon wrote:
> However, under Solaris 2.6:
> clone$uname -a
> SunOS clone 5.6 Generic_105181-13 sun4u sparc SUNW,Ultra-1-Engine
> clone$/bin/ksh
> clone$for i in ; do echo $i; done
> /bin/ksh: syntax error: `;' unexpected
> clone$

   It is likely you are running the ksh88 version, which has
quite a few ``pre-POSIX'' features.  Try this command to see
whether you have ksh88 or ksh93:

echo ${.sh.version}

   If you have ksh93, you'll see something like

Version M 1993-12-28 i

   Perhaps with a different letter at the end (`i' is the source
release).  I believe you'll get an error or nothing if it's
ksh88.

-- 
|Chris Costello <chris@calldei.com>
|Know Thy User.
`----------------------------------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000306090040.C4990>