Skip site navigation (1)Skip section navigation (2)
Date:      24 Feb 2002 11:29:08 -0800
From:      swear@blarg.net (Gary W. Swearingen)
To:        "Jeff Jeter" <gsfgf@hotmail.com>
Cc:        "FreeBSD Questions" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Linux shell scripts
Message-ID:  <p27kp2y8zf.kp2@localhost.localdomain>
In-Reply-To: <OE727nlT2NqFJ3sl3xb0000970f@hotmail.com>
References:  <OE727nlT2NqFJ3sl3xb0000970f@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"Jeff Jeter" <gsfgf@hotmail.com> writes:

> I have several apps that use shell schripts.  THese apps are designed for linux.  when i run these scripts with sh i
> get odd errors such as Syntax error: unexpected ")"  and

By now you understand the problem and have some solution ideas, so I
just have a general suggestion.

Scripts which don't explicitly disavow portability should be assumed to
be written for portability, especially if they call for "sh" in line
one, and you should let the script writer/mainatiner know what problems
you have encountered.  Many will make changes; with others you would
then contact the FreeBSD port maintainer, if any, to patch it.

It's reasonable, if not ideal, to require that "bash" or even "bash2" be
installed, but it's not reasonable to require that commands like "sh"
and "head" support the script identically to the script writer's "sh"
often linked to "bash", flagging a "portable" mode of "bash") and "head".

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p27kp2y8zf.kp2>