[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: shell script.

On Mon, Apr 10, 2000 at 02:26:33PM +0530, Kunal Shah wrote:
> How to return a command from child shell to parent?
> suppose  i want to write a shell script for setting a directory
> for example in dos i will write a bat file
> with commands
> cd /home/kunal

I don't know how DOS works, but you can't do it that way on UNIX.
The suggested way is:


cd `sh child`


echo /home/kunal

Or one of the many variations of the above theme.