Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA
Path: utzoo!linus!decvax!genrad!mit-eddie!godot!harvard!seismo!brl-tgr!tgr!alb@Mitre-Bedford
From: alb@Mitre-Bedford
Newsgroups: net.unix
Subject: Re: arguments for a command file
Message-ID: <6729@brl-tgr.ARPA>
Date: Fri, 21-Dec-84 16:46:21 EST
Article-I.D.: brl-tgr.6729
Posted: Fri Dec 21 16:46:21 1984
Date-Received: Sun, 23-Dec-84 08:20:00 EST
Sender: news@brl-tgr.ARPA
Organization: Ballistic Research Lab
Lines: 10

The catch is that when you run the program as a command, it runs as
a child of the present shell. That is why the cd in the file doesn't
effect the parent shell.

A way to have the shell file make changes in the present shell is to
use the source command, which interprets the commands with the present
shell. Unfortunately this complicates the argument passing.  You could
read the argument from stdin once the the file is running.

len