Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site gloria.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!sdcsvax!dcdwest!ittvax!decvax!genrad!mit-eddie!godot!harvard!seismo!rochester!rocksvax!rocksanne!sunybcs!gloria!colonel From: colonel@gloria.UUCP (George Sicherman) Newsgroups: net.unix,net.unix-wizards Subject: Re: arguments for a command file Message-ID: <749@gloria.UUCP> Date: Thu, 27-Dec-84 20:35:50 EST Article-I.D.: gloria.749 Posted: Thu Dec 27 20:35:50 1984 Date-Received: Mon, 31-Dec-84 01:58:32 EST References: <2650@dartvax.UUCP> Organization: SUNY-Buffalo Confuser Science Lines: 15 Xref: watmath net.unix:3192 net.unix-wizards:11285 [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