about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-05 07:18:59 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-05 07:18:59 +0000
commit82ca135d34bb2d27ead24a9d8d28bb4428de2abd (patch)
tree3f2c1ab39a52987d9c13b40bfedcfc40e3ea9bd2
parent6a93b85903a536bb5ca46d3b3ad0e5d5a37fbcf2 (diff)
downloadzsh-82ca135d34bb2d27ead24a9d8d28bb4428de2abd.tar.gz
zsh-82ca135d34bb2d27ead24a9d8d28bb4428de2abd.tar.xz
zsh-82ca135d34bb2d27ead24a9d8d28bb4428de2abd.zip
fix for jobs -l -d, check if directory of job is already set (11170)
-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);
     }