> -----Original Message----- > From: IBM Mainframe Discussion List > [mailto:[EMAIL PROTECTED] On Behalf Of Debbie Mitchell > Sent: Friday, March 02, 2007 8:11 AM > To: [email protected] > Subject: ishell vs. OMVS behavior > > > I'm at a loss. If I use a 'cd' command from ishell, it > appears to have no > effect. I don't get any message at all, but a subsequent > 'pwd' still shows > root (which is specified in my RACF OMVS segment as HOME). > But if I issue a > 'cd' command from TSO OMVS, it works. > > I've done several searches and looked at several manuals, but > I can't find > what is causing this behavior. Any insight is greatly appreciated. > > Thank you in advance,
>From what I understand, the ISHELL command is not designed to actually do a "cd" to change the current working directory of your TSO session/process. Please remember that UNIX works differently from TSO. When you do a "sh cd /subdirectory" in ISHELL, it creates a NEW process (usually in a new address space), runs the UNIX shell in that new process, gives the command "cd /subdirectory" to that new shell, which changes the working directory of that process to /subdirectory. That process then terminates because it has nothing more to do. So, in effect, you have done nothing because the "cd" command is not running in your TSO address space at all. It does work in OMVS because you are running the normal UNIX shell program and the "cd" command is what is called a "builtin" command to the shell. this means that it does not fork() a new process (the way that ISHELL does). In UNIX, a child process cannot effect (directly) the environment of the parent process. The current working directory is considered part of the "environment" of a process. -- John McKown Senior Systems Programmer HealthMarkets Keeping the Promise of Affordable Coverage Administrative Services Group Information Technology The information contained in this e-mail message may be privileged and/or confidential. It is for intended addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication is strictly prohibited and could, in certain circumstances, be a criminal offense. If you have received this e-mail in error, please notify the sender by reply and delete this message without copying or disclosing it. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

