string split, bash and IFS

Polytropon freebsd at edvax.de
Fri Sep 5 17:01:10 UTC 2008


Please allow me a sidenote:

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


More information about the freebsd-questions mailing list