Date: Sun, 2 Jul 2000 14:06:02 -0700 From: "Crist J. Clark" <cristjc@earthlink.net> To: R Joseph Wright <rjoseph@mammalia.org> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: making shell script run in its own directory Message-ID: <20000702140601.E3842@dialin-client.earthlink.net> In-Reply-To: <20000702130901.A66305@manatee.mammalia.org>; from rjoseph@mammalia.org on Sun, Jul 02, 2000 at 01:09:01PM -0700 References: <20000702130901.A66305@manatee.mammalia.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jul 02, 2000 at 01:09:01PM -0700, R Joseph Wright wrote: > How do I make a shell script run in the directory where it resides rather than > the directory where it was called from? Assuming sh(1), I think this would do it, cd `dirname $0` -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000702140601.E3842>