Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site dartvax.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!bellcore!decvax!dartvax!kapil
From: kapil@dartvax.UUCP
Newsgroups: net.unix,net.unix-wizards
Subject: arguments for a command file
Message-ID: <2650@dartvax.UUCP>
Date: Wed, 19-Dec-84 14:11:13 EST
Article-I.D.: dartvax.2650
Posted: Wed Dec 19 14:11:13 1984
Date-Received: Fri, 21-Dec-84 01:03:06 EST
Distribution: net
Organization: Dartmouth College, Hanover, NH
Lines: 15
Xref: watmath net.unix:3141 net.unix-wizards:11156

*** REPLACE THIS LINE WITH YOUR MESSAGE ***
 
I am facing a problem writing a command file. I would like this file
to be run with an argument supplied. The command it executes is cd.
the argument is the pathname it should default to. the command file
enables the 25th line prints the new directory in reverse video,
clears the screen and repositions the cursor at the top of the screen.

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?