Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Sep 2008 19:01:07 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Jim Hertzler <jimhertzler@ntelos.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: string split, bash and IFS
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>

next in thread | previous in thread | raw e-mail | index | archive | help
Please allow me a sidenote:

On Fri, 5 Sep 2008 09:38:29 -0700 (PDT), Jim Hertzler <jimhertzler@ntelos.net> 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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080905190107.b1a4e970.freebsd>