From owner-freebsd-questions Sun Feb 24 18:35:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mired.org (dsl-64-192-6-133.telocity.com [64.192.6.133]) by hub.freebsd.org (Postfix) with SMTP id EAD8837B400 for ; Sun, 24 Feb 2002 18:35:52 -0800 (PST) Received: (qmail 61009 invoked by uid 100); 25 Feb 2002 02:35:45 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15481.41728.865317.239202@guru.mired.org> Date: Sun, 24 Feb 2002 20:35:44 -0600 To: swear@blarg.net (Gary W. Swearingen) Cc: questions@freebsd.org Subject: Re: Linux shell scripts In-Reply-To: <133903080@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: "Mike Meyer" X-Delivery-Agent: TMDA/0.46 (Python 2.2; freebsd-4.5-STABLE-i386) 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 Gary W. Swearingen types: > It's reasonable, if not ideal, to require that "bash" or even "bash2" be > installed Having exterminated bash on all my systems, I'd not call that reasonable, much less ideal. On the other hand, I never learned the *scripting* features that bash has that might cause one to want to use it instead of sh. On the gripping hand, anytime a script requires more than one loop or conditional test, it's time to consider a real scripting language, like Perl or - ideally :-) - Python. > 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". Such things should conform to Posix if the script is meant to be portable. Unfortunately, man and info pages seldom document which flags are part of posix and which are extensisions, nor do they document which flags that do what the posix flags do result in output that doesn't comply with posix. Which is SOP for Unix systems. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message