Date: Wed, 12 Nov 2008 14:14:07 -0500 From: Jerry <gesbbb@yahoo.com> To: freebsd-questions@freebsd.org Subject: Re: root /etc/csh Message-ID: <20081112141407.0be011ae@scorpio> In-Reply-To: <20081112080616.2e195af5.freebsd@edvax.de> References: <20081110110805.GK1302@obspm.fr> <20081110161002.GA81960@gizmo.acns.msu.edu> <20081110203643.GH27646@obspm.fr> <200811102235.46971.fbsd.questions@rachie.is-a-geek.net> <Pine.GSO.4.63.0811102239200.846@hmacs.cmi.ua.ac.be> <4ad871310811101530p7b2baa0fk7f7b5118e314c11d@mail.gmail.com> <4918CE42.3050504@ccstores.com> <20081111151302.GA86528@gizmo.acns.msu.edu> <20081112080616.2e195af5.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/zLhl2XT1uroNONGP/Oblec3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, 12 Nov 2008 08:06:16 +0100 Polytropon <freebsd@edvax.de> 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. --=20 Jerry gesbbb@yahoo.com His life was formal; his actions seemed ruled with a ruler. --Sig_/zLhl2XT1uroNONGP/Oblec3 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkbKwgACgkQBvaKIJWWCO00OwCgixpOA+d4YVf2qO/HH+3UkAvG l0QAniPvG7oXPmhVqTb0jSRBIn1yeGqk =vv0s -----END PGP SIGNATURE----- --Sig_/zLhl2XT1uroNONGP/Oblec3--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081112141407.0be011ae>