arguments for a command file
alb at Mitre-Bedford
alb at Mitre-Bedford
Sat Dec 22 07:46:21 AEST 1984
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
More information about the Comp.unix
mailing list