From 82ca135d34bb2d27ead24a9d8d28bb4428de2abd Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Fri, 5 May 2000 07:18:59 +0000 Subject: [PATCH] fix for jobs -l -d, check if directory of job is already set (11170) --- ChangeLog | 5 +++++ Src/jobs.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6b90b496a..e7748fa18 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-05-05 Sven Wischnowsky + + * 11170: Src/jobs.c: fix for jobs -l -d, check if directory of job + is already set + 2000-05-04 Tanaka Akira * 11166: Completion/Base/_regex_arguments: remove debugging code. diff --git a/Src/jobs.c b/Src/jobs.c index 962b0ded0..02009ec9b 100644 --- a/Src/jobs.c +++ b/Src/jobs.c @@ -734,7 +734,7 @@ printjob(Job jn, int lng, int synch) if ((lng & 4) || (interact && job == thisjob && jn->pwd && strcmp(jn->pwd, pwd))) { fprintf(shout, "(pwd %s: ", (lng & 4) ? "" : "now"); - fprintdir((lng & 4) ? jn->pwd : pwd, shout); + fprintdir(((lng & 4) && jn->pwd) ? jn->pwd : pwd, shout); fprintf(shout, ")\n"); fflush(shout); }