Does `wd:` in `jobs` show the current working directory of each job, or the previous working directory when invoking each job?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
-4
down vote

favorite












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.







share|improve this question





















  • I actually explicitly told Tim the answer to this, at unix.stackexchange.com/a/459033/5132 .
    – JdeBP
    Jul 29 at 21:11
















up vote
-4
down vote

favorite












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.







share|improve this question





















  • I actually explicitly told Tim the answer to this, at unix.stackexchange.com/a/459033/5132 .
    – JdeBP
    Jul 29 at 21:11












up vote
-4
down vote

favorite









up vote
-4
down vote

favorite











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.







share|improve this question













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.









share|improve this question












share|improve this question




share|improve this question








edited Jul 29 at 22:28









slm♦

232k65479649




232k65479649









asked Jul 29 at 19:07









Tim

22.5k61222398




22.5k61222398











  • I actually explicitly told Tim the answer to this, at unix.stackexchange.com/a/459033/5132 .
    – JdeBP
    Jul 29 at 21:11
















  • I actually explicitly told Tim the answer to this, at unix.stackexchange.com/a/459033/5132 .
    – JdeBP
    Jul 29 at 21:11















I actually explicitly told Tim the answer to this, at unix.stackexchange.com/a/459033/5132 .
– JdeBP
Jul 29 at 21:11




I actually explicitly told Tim the answer to this, at unix.stackexchange.com/a/459033/5132 .
– JdeBP
Jul 29 at 21:11










1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










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



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






share|improve this answer





















  • Thanks. Can you demonstrate it or quote from some references?
    – Tim
    Jul 29 at 20:30










  • Check the last function in the file sh/xec.c from the Bourne Shell in schilytools.
    – schily
    Jul 29 at 20:33











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f459217%2fdoes-wd-in-jobs-show-the-current-working-directory-of-each-job-or-the-prev%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote



accepted










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



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






share|improve this answer





















  • Thanks. Can you demonstrate it or quote from some references?
    – Tim
    Jul 29 at 20:30










  • Check the last function in the file sh/xec.c from the Bourne Shell in schilytools.
    – schily
    Jul 29 at 20:33















up vote
0
down vote



accepted










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



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






share|improve this answer





















  • Thanks. Can you demonstrate it or quote from some references?
    – Tim
    Jul 29 at 20:30










  • Check the last function in the file sh/xec.c from the Bourne Shell in schilytools.
    – schily
    Jul 29 at 20:33













up vote
0
down vote



accepted







up vote
0
down vote



accepted






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



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






share|improve this answer













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



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







share|improve this answer













share|improve this answer



share|improve this answer











answered Jul 29 at 19:22









schily

8,39221435




8,39221435











  • Thanks. Can you demonstrate it or quote from some references?
    – Tim
    Jul 29 at 20:30










  • Check the last function in the file sh/xec.c from the Bourne Shell in schilytools.
    – schily
    Jul 29 at 20:33

















  • Thanks. Can you demonstrate it or quote from some references?
    – Tim
    Jul 29 at 20:30










  • Check the last function in the file sh/xec.c from the Bourne Shell in schilytools.
    – schily
    Jul 29 at 20:33
















Thanks. Can you demonstrate it or quote from some references?
– Tim
Jul 29 at 20:30




Thanks. Can you demonstrate it or quote from some references?
– Tim
Jul 29 at 20:30












Check the last function in the file sh/xec.c from the Bourne Shell in schilytools.
– schily
Jul 29 at 20:33





Check the last function in the file sh/xec.c from the Bourne Shell in schilytools.
– schily
Jul 29 at 20:33













 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f459217%2fdoes-wd-in-jobs-show-the-current-working-directory-of-each-job-or-the-prev%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)