From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,b8d4892ffb920cf4 X-Google-Attributes: gidfa528,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail Reply-To: "Mike Ingram" From: "Mike Ingram" Newsgroups: comp.unix.tru64 References: <1179469678.493589.139700@e65g2000hsc.googlegroups.com> Subject: Re: OSF1 V5.1 alpha & ksh Date: Fri, 18 May 2007 20:54:27 +1000 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original Message-ID: <464d8601$0$9065$5a62ac22@per-qv1-newsreader-01.iinet.net.au> NNTP-Posting-Host: 203.217.35.135 X-Trace: 1179485697 per-qv1-newsreader-01.iinet.net.au 9065 203.217.35.135 Xref: g2news1.google.com comp.unix.tru64:987 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?!