summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/jobs.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6b90b496a..e7748fa18 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-05  Sven Wischnowsky  <wischnow@informatik.hu-berlin.de>
+
+	* 11170: Src/jobs.c: fix for jobs -l -d, check if directory of job
+ 	is already set
+	
 2000-05-04  Tanaka Akira  <akr@zsh.org>
 
 	* 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);
     }