On Wed, 12 Nov 2008 08:06:16 +0100
Polytropon <[EMAIL PROTECTED]> wrote:

>Especially in Linux, it's common to prefix scripts with #!/bin/bash
>which won't work in FreeBSD, because it's #/usr/local/bin/bash there.
>Linux has no problem running #!/bin/sh scripts because there's a
>symlink /bin/sh -> /bin/bash.
>
>My advice for maximum interoperability and compatibility between Linux
>and UNIX: If you're not using any bash specific techniques in your
>scripts, start them with #!/bin/sh instead of #!/bin/bash.
>
>The sh shell is the UNIX standard scripting shell, while Linux's
>one is bash.

I usually just use:

#!/usr/bin/env bash

It seems to work on both Linux and FBSD.

-- 
Jerry
[EMAIL PROTECTED]

His life was formal; his actions seemed ruled with a ruler.

Attachment: signature.asc
Description: PGP signature

Reply via email to