From owner-freebsd-questions@FreeBSD.ORG Fri Sep 5 17:01:10 2008 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 3B39C1065673 for ; Fri, 5 Sep 2008 17:01:10 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id F0EBD8FC0A for ; Fri, 5 Sep 2008 17:01:09 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-195-161-2.dynamic.qsc.de [92.195.161.2]) by mx01.qsc.de (Postfix) with ESMTP id 57CBB50C2E; Fri, 5 Sep 2008 19:01:08 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id m85H17OV002043; Fri, 5 Sep 2008 19:01:07 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 5 Sep 2008 19:01:07 +0200 From: Polytropon To: Jim Hertzler Message-Id: <20080905190107.b1a4e970.freebsd@edvax.de> In-Reply-To: <19335104.post@talk.nabble.com> References: <499449.17617.qm@web57002.mail.re3.yahoo.com> <19335104.post@talk.nabble.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: freebsd-questions@freebsd.org Subject: Re: string split, bash and IFS 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: Fri, 05 Sep 2008 17:01:10 -0000 Please allow me a sidenote: On Fri, 5 Sep 2008 09:38:29 -0700 (PDT), Jim Hertzler wrote: > > #!/bin/bash ^^^^^ Isn't compatible to FreeBSD, I think, because BASH is an additional package and the bash binary will be installed into /usr/local/bin/bash; unless you're not using any features that are exclusively in bash (and not in sh), declare /bin/sh as shell (standard scripting shell in UNIX). So if you use BASH on FreeBSD, BASH scripts would need to have the header #!/usr/local/bin/bash on order to operate correctly - unless, of course, you modify your system to have BASH as /bin/bash (copying, symlinking)... -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...