SCO 6 (RE: FW: The grand finale)

Kenneth Brody kenbrody at bestweb.net
Fri Nov 11 07:07:15 PST 2005


Quoting John Esak (Fri, 11 Nov 2005 09:24:12 -0500):

> >
> > Ok .. Now that I was about to upgrade to SCO 6 I see this ..
> >
> > What conserns should I have (if any) of upgrading my system
> > from 5.0.7 to 6.  Will Filepro / VSIFAX / BARPRO+ binaries from
> > 5.0.7 run ok on 6 ?
> >
> > >From another thread I see the System command was mentioned.
> > We used quite a bit in our processing to call "sh" scripts/commands.
> > Will I need modify script find (More then just the #!/bin/sh line) ?
> >
> > Thanks as always ..
> > Doug L
>
> Yes, they run. The filePro programs we have tried, all work just fine.
> However, I have not specifically tried excercising the SYSTEM command,
> which calls a different shell on 6.0 instead of /bin/sh. Even if you
> have the SHELL environment variable set to /bin/sh, it still calls this
> other korn type shell. What this will break in my system? I don't know.
> However, I know FP Technologies has built a new 6.0 set of programs to
> work around this.

If you are executing a script, and that script starts with "#!/bin/sh",
then the Bourne shell will still execute it.  However, without this line
at the top, the Korn shell will execute it.  If you're not executing a
script, or some Bourne-specific command, then it probably doesn't
matter.

However, if your script doesn't start with "#!/bin/sh" (and, honestly,
how many of you always put the shell there?), and it depends on some
Bourne-specific behavior which changes in Korn, you're SOL unless you
change your script to either work under Korn, or add the "#!/bin/sh".

As for filePro's workaround, we no longer call system().  Instead, we
call a replacement for it, which actually works as documented by calling
/bin/sh.  (And added a filePro-specific PFSHELL override, just in case.)

[...]

--
KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com


More information about the Filepro-list mailing list