Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: "Mike Ingram" <mike.ingram@iinet.net.au>
Subject: Re: OSF1 V5.1 alpha & ksh
Date: Fri, 18 May 2007 20:54:27 +1000	[thread overview]
Message-ID: <464d8601$0$9065$5a62ac22@per-qv1-newsreader-01.iinet.net.au> (raw)
In-Reply-To: 1179469678.493589.139700@e65g2000hsc.googlegroups.com


<kerolasa@gmail.com> wrote in message 
news:1179469678.493589.139700@e65g2000hsc.googlegroups.com...
> Hello
>
> I found out that ksh syntax works
>
> if test -f /etc/passw* ; then echo works ; else echo does not work ;
> fi
>
> on OSF1 V5.1 alpha, but does not work on HPUX 11.00, 11.23, AIX 5.3 or
> Linux. Is it well known OSF1 ksh features that it allows syntax's
> which all other unixes disallow?
>
> I, and perhaps some others interoperability testers, am interested of
> shell differences because there's mile long scripts that I am
> transferring  from old OSF box to new HPUX. This error got my
> attention and I assume there could be other OSF1 ksh mines left to
> explode.
>
> --
>  Sami Kerola
>  http://www.iki.fi/kerolasa/
>

I cannot tell you the shell differences, but I have tried your script on 
5.1a and it worked on the ksh.
Then I tried it on HP-UX ksh, and it also worked - not sure what you did 
wrong?
So I tried it on Solaris (bash) and it worked too. The only problem I had 
was on Linux (bash) - the test command didn't like the asterisk. If I 
changed it from passw* to passwd, then it worked.

In previous script conversions I have done between systems, I have found 
very few differences, except for differences using "let" and "set".

I hope my two cents worth helps?!




      reply	other threads:[~2007-05-18 10:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-18  6:27 OSF1 V5.1 alpha & ksh kerolasa
2007-05-18 10:54 ` Mike Ingram [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox