Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Oct 1997 11:13:33 +1300 (NZDT)
From:      Jonathan Chen <jonc@pinnacle.co.nz>
To:        Jason Wells <jcwells@u.washington.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Force a script to use shell foo
Message-ID:  <Pine.SGI.3.96.971021111246.1850A-100000@tui.pinnacle.co.nz>
In-Reply-To: <3.0.3.32.19971020204450.007b78a0@jcwells.deskmail.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 20 Oct 1997, Jason Wells wrote:

> Is it sufficient to just enter the command /usr/local/bin/bash within the
> script to get the script to use bash? If not, how do I set up an
> environment for a program?

Just add:

	#! /usr/local/bin/bash

to the first line of your script file to force it to use bash.
--
Jonathan Chen                          e-mail : jonc@pinnacle.co.nz
  Pinnacle Software Ltd                Voice  : +64.9.415.4460
  Auckland, New Zealand                Fax    : +64.9.415.4250




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SGI.3.96.971021111246.1850A-100000>