From owner-freebsd-questions Sun Feb 24 11:26:48 2002 Delivered-To: freebsd-questions@freebsd.org Received: from lists.blarg.net (lists.blarg.net [206.124.128.17]) by hub.freebsd.org (Postfix) with ESMTP id EDD0E37B405 for ; Sun, 24 Feb 2002 11:26:45 -0800 (PST) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id A7B73BDD2; Sun, 24 Feb 2002 11:26:45 -0800 (PST) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id LAA06722; Sun, 24 Feb 2002 11:26:45 -0800 Received: (from jojo@localhost) by localhost.localdomain (8.11.6/8.11.3) id g1OJT8B05790; Sun, 24 Feb 2002 11:29:08 -0800 (PST) (envelope-from swear@blarg.net) To: "Jeff Jeter" Cc: "FreeBSD Questions" Subject: Re: Linux shell scripts References: From: swear@blarg.net (Gary W. Swearingen) Date: 24 Feb 2002 11:29:08 -0800 In-Reply-To: Message-ID: Lines: 18 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Jeff Jeter" 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