-4

Does wd: in jobs show

  • the current working directory of each job, or
  • the previous working directory when invoking each job?

Can you demonstrate it or quote from some references?

I was under the impression of the second one when asking Does `ps` provide the working directory of each process?, but the replies seem all about the first one.

slm
  • 369,824
Tim
  • 101,790
  • I actually explicitly told Tim the answer to this, at https://unix.stackexchange.com/a/459033/5132 . – JdeBP Jul 29 '18 at 21:11

1 Answers1

0

Jobs prints the working directory the shell had when starting the related job.

What later happens is not in the scope of the shell.

schily
  • 19,173