[2475] in Athena Bugs
Re: VS 6.2A tcsh?
daemon@ATHENA.MIT.EDU (John T Kohl)
Tue Jun 27 08:38:15 1989
Date: Tue, 27 Jun 89 08:37:58 EDT
From: John T Kohl <jtkohl@ATHENA.MIT.EDU>
To: dkk@ATHENA.MIT.EDU
Cc: bugs@ATHENA.MIT.EDU
In-Reply-To: bugs:[2473]
This is a long-standing confuser in the csh/tcsh.
What happens is that the parent shell (yours) prints out the working
directory in which its child (the root shell) STARTED. For most
programs which don't do chdir()'s, this is will be correct. However,
for shells & such, it prints out something that is most likely
incorrect.
There's no good way to fix it, as the system doesn't provide a way to
(easily--i.e. without grovelling over lots of data structures in the
kernel) determine another process's working directory.
Csh prints this out as a convenience to the user who suspended jobs. It
doesn't print the (wd: xxx) stuff if the working directory in which the
job started is the current working directory of the shell.
John