* OSF1 V5.1 alpha & ksh
@ 2007-05-18 6:27 kerolasa
2007-05-18 10:54 ` Mike Ingram
0 siblings, 1 reply; 2+ messages in thread
From: kerolasa @ 2007-05-18 6:27 UTC (permalink / raw)
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: OSF1 V5.1 alpha & ksh
2007-05-18 6:27 OSF1 V5.1 alpha & ksh kerolasa
@ 2007-05-18 10:54 ` Mike Ingram
0 siblings, 0 replies; 2+ messages in thread
From: Mike Ingram @ 2007-05-18 10:54 UTC (permalink / raw)
<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?!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-18 10:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-18 6:27 OSF1 V5.1 alpha & ksh kerolasa
2007-05-18 10:54 ` Mike Ingram
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox