Script conversion from SCO Open Server to Red Hat Enterprise needed...

Fairlight fairlite at fairlite.com
Tue Jun 6 12:47:19 PDT 2006


With neither thought nor caution, Walter Vaughan blurted:
> Mike Schwartz wrote:
> >      I'm trying to get this old Softa script from SCO Open Server (below) to
> > run on Red Hat Enterprise Linux.
> 
> Try running it from /bin/sh. Works just fine on FreeBSD running under /bin/sh
> 
> You should prepend #!/bin/sh at the top

I just looked at it, and of course the first thing I did was include the
magic.  Got this:

./scripthelp -C -q flt
./scripthelp: line 52: syntax error near unexpected token `||'
./scripthelp: line 52: `|| {'

The relevant segment starting at 52 is:

|| {
    echo "\nEnter the new qualifier: \c"
    read qual
}


My Bourne is way too rusty to remember what that syntax means--if I've ever
seen it used at all.  All I can tell you without more digging is that bash
doesn't like it.  Is the Bourne on FBSD a real version, or bash?

GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu)

That's RHEL3's.

mark->


More information about the Filepro-list mailing list