From owner-freebsd-questions Mon Oct 20 13:41:34 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA18517 for questions-outgoing; Mon, 20 Oct 1997 13:41:34 -0700 (PDT) (envelope-from owner-freebsd-questions) Received: from jason03.u.washington.edu (root@jason03.u.washington.edu [140.142.77.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA18512 for ; Mon, 20 Oct 1997 13:41:32 -0700 (PDT) (envelope-from jcwells@u.washington.edu) Received: from saul1.u.washington.edu (root@saul1.u.washington.edu [140.142.82.10]) by jason03.u.washington.edu (8.8.4+UW97.07/8.8.4+UW97.05) with ESMTP id NAA04428 for ; Mon, 20 Oct 1997 13:41:27 -0700 Received: from S8-37-26.student.washington.edu (S8-37-26.student.washington.edu [128.208.37.26]) by saul1.u.washington.edu (8.8.4+UW97.07/8.8.4+UW97.04) with SMTP id NAA21323 for ; Mon, 20 Oct 1997 13:41:25 -0700 (PDT) Message-Id: <3.0.3.32.19971020204450.007b78a0@jcwells.deskmail.washington.edu> X-Sender: jcwells@jcwells.deskmail.washington.edu X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32) Date: Mon, 20 Oct 1997 20:44:50 +0000 To: freebsd-questions@freebsd.org From: Jason Wells Subject: Force a script to use shell foo Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I am familiar with running scripts from the command line. I assume that my scripts inherit the shell that I am using. Is this correct? I have only worked with bash so this is the context of this email. Lets say I run a script from cron. There is no shell to inherit. The script would use /bin/sh. But silly me, I wrote my program to use bash. 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? Thanks, Jason Wells