From owner-freebsd-questions@FreeBSD.ORG Tue Dec 1 21:42:13 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 CAAC01065679 for ; Tue, 1 Dec 2009 21:42:13 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 89E4F8FC1F for ; Tue, 1 Dec 2009 21:42:13 +0000 (UTC) Received: from r55.edvax.de (port-92-195-228-22.dynamic.qsc.de [92.195.228.22]) by mx02.qsc.de (Postfix) with ESMTP id ECF231E211; Tue, 1 Dec 2009 22:42:11 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id nB1LgBJF005865; Tue, 1 Dec 2009 22:42:11 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 1 Dec 2009 22:42:10 +0100 From: Polytropon To: Rolf G Nielsen Message-Id: <20091201224210.15ab009d.freebsd@edvax.de> In-Reply-To: <4B15774A.5040700@lazlarlyricon.com> References: <560275.79074.qm@web30808.mail.mud.yahoo.com> <4B15774A.5040700@lazlarlyricon.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: =?ISO-8859-1?Q?D=E1nielisz_L=E1szl=F3?= , freebsd-questions@freebsd.org Subject: Re: bash script question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2009 21:42:13 -0000 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. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...