From owner-freebsd-questions@FreeBSD.ORG Tue Dec 1 22:02:10 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E0FF1065679 for ; Tue, 1 Dec 2009 22:02:10 +0000 (UTC) (envelope-from lazlar@lazlarlyricon.com) Received: from proxy2.bredband.net (proxy2.bredband.net [195.54.101.72]) by mx1.freebsd.org (Postfix) with ESMTP id 589D98FC14 for ; Tue, 1 Dec 2009 22:02:10 +0000 (UTC) Received: from ipb1.telenor.se (195.54.127.164) by proxy2.bredband.net (7.3.140.3) id 4AD3E1BC0160CB14 for freebsd-questions@freebsd.org; Tue, 1 Dec 2009 23:02:08 +0100 X-SMTPAUTH-B2: X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnNNAJ8hFUtV44PPPGdsb2JhbACBTpdMglUBAQEBN7xdhDEEhWU X-IronPort-AV: E=Sophos;i="4.47,323,1257116400"; d="scan'208";a="10240219" Received: from c-cf83e355.09-42-6e6b7010.cust.bredbandsbolaget.se (HELO lazlar.kicks-ass.net) ([85.227.131.207]) by ipb1.telenor.se with ESMTP; 01 Dec 2009 23:02:08 +0100 Message-ID: <4B15925F.7060909@lazlarlyricon.com> Date: Tue, 01 Dec 2009 23:02:07 +0100 From: Rolf G Nielsen User-Agent: Thunderbird 2.0.0.23 (X11/20091130) MIME-Version: 1.0 To: Gary Kline References: <560275.79074.qm@web30808.mail.mud.yahoo.com> <4B15774A.5040700@lazlarlyricon.com> <20091201224210.15ab009d.freebsd@edvax.de> <20091201214554.GA98830@thought.org> In-Reply-To: <20091201214554.GA98830@thought.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: bash script question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2009 22:02:10 -0000 Gary Kline wrote: > On Tue, Dec 01, 2009 at 10:42:10PM +0100, Polytropon wrote: >> On Tue, 01 Dec 2009 21:06:34 +0100, Rolf G Nielsen wrote: >>> Why are you using bash? To make a shell script as portable as possible, >>> use /bin/sh. Bash is a third party shell, that isn't included in a base >>> installation (you're not using bash as root's shell, are you?). By using >>> /bin/sh, you make sure the script will run without having to install any >>> ports. >> That's a very good advice. Using sh is strongly recommended >> for maximal portability. Use sh if you're not requiring >> features that are bash-only. >> >> > > Hi guys, > > Here's a bash-related question, kind-of. Is there any way to > automagically run my .csrhc thru a script and wind up with a > bash script? > > gary > > >> >> -- >> Polytropon >> Magdeburg, Germany >> Happy FreeBSD user since 4.0 >> Andra moi ennepe, Mousa, ... >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > If by "Is there any way" you mean "is it possible", the answer would have to be yes. The next question is most likely "has anyone written such a script?" and to that question, someone else will have to provide the answer. Rolf Nielsen