arguments for a command file
George Sicherman
colonel at gloria.UUCP
Fri Dec 28 11:35:50 AEST 1984
[If it moves, eat it. --Vogon proverb]
> I am attempting to pass the argument by --
> cd $1
> Is this the right way of doing it?
> I print the pwd in the command file and it prints the expected one.
> On using the command pwd outside the command file I find that the
> change in the directory has not been made.
> Why does it do this?
Because a child cannot change its parent's environment. Maybe
you should consider aliasing.
--
Col. G. L. Sicherman
...seismo!rochester!rocksanne!rocksvax!sunybcs!gloria!colonel
More information about the Comp.unix
mailing list