From owner-freebsd-hackers Mon Mar 6 7: 1:40 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from holly.calldei.com (adsl-208-191-146-189.dsl.hstntx.swbell.net [208.191.146.189]) by hub.freebsd.org (Postfix) with ESMTP id 0A63737BD1B for ; Mon, 6 Mar 2000 07:01:37 -0800 (PST) (envelope-from chris@holly.calldei.com) Received: (from chris@localhost) by holly.calldei.com (8.9.3/8.9.3) id JAA06797; Mon, 6 Mar 2000 09:00:41 -0600 (CST) (envelope-from chris) Date: Mon, 6 Mar 2000 09:00:40 -0600 From: Chris Costello To: Max Khon Cc: Sheldon Hearn , hackers@FreeBSD.ORG Subject: Re: empty lists in for Message-ID: <20000306090040.C4990@holly.calldei.com> Reply-To: chris@calldei.com References: <20000305234210.A4990@holly.calldei.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/0.96.4i In-Reply-To: X-URL: http://www.FreeBSD.org/~chris/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 |Know Thy User. `---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message