[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ast-users
Subject:    [ast-users] Ksh 93 s+ Issue?
From:       piochjennifer () googlemail ! com (Jennifer Pioch)
Date:       2008-01-30 12:08:19
Message-ID: 67079b830801300907m7155768cu574ede76207f3f89 () mail ! gmail ! com
[Download RAW message or body]

On 1/30/08, David Korn <dgk@research.att.com> wrote:
> cc:  Mike.Nemeth@lsi.com
> Subject: Re: [ast-users] Ksh 93 s+ Issue?
> --------
>
> > Hello AST users,
> >
> > I have the following test script (see below).  The last line commented
> > runs fine on ksh88 (solaris) and pdksh (rehat linux). When trying to
> > run the script on Version M 1993-12-28 s+ redhat linux I get  line 15:
> > syntax error at line 17: `&&' unexpected.  Could this be a bug?
> >
> >
> > #!/bin/ksh
> > ENV_DEBUGON=YES
> > [ "$ENV_DEBUGON" == "YES" ] && set -x
> >
> > cat<<%END%>/tmp/junk
> > abc
> > %END%
> >
> > FILE=/tmp/junk
> > [ -s $FILE ] && [ `wc -l $FILE | nawk '{print $1}'` -gt 2 ] && [ mv
> > $FILE /tmp/junkf ]
> > #[ -s $FILE ] && (( `wc -l $FILE | nawk '{print $1}'` > 2 )) && [ mv
> > $FILE /tmp/junkf ]
> >
> >
> >
>
>
> This is a bug in the lexer but too late to fix for ksh93s+.

You could always do another ksh93s+ update :)
-- 
Jennifer Pioch, Uni Frankfurt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic