Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Nov 2008 11:49:35 -0800 (PST)
From:      GESBBB <gesbbb@yahoo.com>
To:        FreeBSD Users Questions <freebsd-questions@freebsd.org>
Subject:   Re: root /etc/csh
Message-ID:  <875511.50099.qm@web32106.mail.mud.yahoo.com>
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> <20081112141407.0be011ae@scorpio> <20081114192856.GD9882@kokopelli.hydra>

next in thread | previous in thread | raw e-mail | index | archive | help
> From: Chad Perrin perrin@apotheon.com=0A=A0=0A> On Wed, Nov 12, 2008 at 0=
2:14:07PM -0500, Jerry wrote:=0A> > =0A> > I usually just use:=0A> > =0A> >=
 #!/usr/bin/env bash=0A> > =0A> > It seems to work on both Linux and FBSD.=
=0A> =0A> That does work -- as long as you have bash installed.=A0 How port=
able do=0A> you want your script to be?=0A=0AThe point is that I would want=
 it to work seamlessly between different flavors of *nix and FBSD. Since th=
ere seems to be a lack of consistency as to where 'Bash' is installed on di=
fferent OSs, I find that using the notation I described works best and seem=
s to improve the portability of the scripts. Since most of the scripts that=
 I write are 'Bash' specific anyway, the fact that it would not work if Bas=
h was not installed is of little importance.=0A=0ABy the way, this also wor=
ks with Perl as you no doubt know. I cannot count how many times I have ins=
talled a Perl script and then had to modify the 'shebang' in order to get i=
t to work in FBSD. I know that I could probably make some symbolic links or=
 whatever; however, I feel that, that is the wrong way to get things to wor=
k properly.=0A=0AJust my 2=A2.=0A=0A-- =0AJerry=0A



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