From owner-freebsd-questions Mon Feb 25 17:37: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 E363E37B400 for ; Mon, 25 Feb 2002 17:37:51 -0800 (PST) Received: (qmail 75970 invoked by uid 100); 26 Feb 2002 01:37:50 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15482.59117.828794.86536@guru.mired.org> Date: Mon, 25 Feb 2002 19:37:49 -0600 To: swear@blarg.net (Gary W. Swearingen) Cc: questions@freebsd.org Subject: Re: Linux shell scripts In-Reply-To: References: <15481.41728.865317.239202@guru.mired.org> 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: > "Mike Meyer" writes: > > 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. > Maybe "if not ideal" is not ideal writing. You make me wonder if I > was misinterpreted. I tried to imply that I thought it was "not ideal" > while actually using a non-judgemental "if". Did you infer the opposite? > Maybe I need to be less polite, like using "though not ideal" or "though > hardly ideal". Yup, I read it as just the opposite of what you meant. I thought you meant "It's at least reasonable, and possibly ideal,...". I can see how it can mean what you say, though. Your alternative choices, or possibly using "but" instead of "if" would be less ambiguous. > > 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. > Care to explain why Bash is an unreasonable dependency, while Perl and > Python (and Ruby and autoconf and libxml2 and ...) are (?) reasonable? Perl's a special case - it's in the base system, and you can't rebuild the system without it. Perl5.6 would fit with the rest, but not 5.005. Bash is also a special case, because it's just sh plus features that enhance it's usability as an interactive shell. At least, that's what I know it for, though I haven't kept up with all the latest features. I switched to zsh to get completion, only to be told that bash has it now. I feel the same way about zsh, even though it has some features that would be useful in scripts, like multios. I'm not going to write scripts that take advantage of multios, because their are clumsier ways to get that result while leaving the script portable. > I'd like to avoid Bash too, but I find it unreasonable to expect others > to share my choice in shells. On a practical level, how do you handle > ports and other software that requires Bash? Don't use the software? First, I stretched the truth a bit. I do have a bash installed, but it's called /compat/linux/bin/sh. I'd forgotten about that. When I deleted the FreeBSD bash, the system just quitely did it, without telling me that any other ports needed it. > Work with the maintainer to eliminate the need? Some ports that seem to > depend on bash1 or bash2: instant-workstation, hylafax, sqsh, > linux_base, wine, txt2regex, tex2im, linux-lesstif-ns; there are many > fewer than I expected to find. (Looks like I got infected via > linux_base.) Hmm. Possibly it's a build dependency for linux_base, because I've got that installed. 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