diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-05 07:18:59 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-05 07:18:59 +0000 |
commit | 82ca135d34bb2d27ead24a9d8d28bb4428de2abd (patch) | |
tree | 3f2c1ab39a52987d9c13b40bfedcfc40e3ea9bd2 /Src/jobs.c | |
parent | 6a93b85903a536bb5ca46d3b3ad0e5d5a37fbcf2 (diff) | |
download | zsh-82ca135d34bb2d27ead24a9d8d28bb4428de2abd.tar.gz zsh-82ca135d34bb2d27ead24a9d8d28bb4428de2abd.tar.xz zsh-82ca135d34bb2d27ead24a9d8d28bb4428de2abd.zip |
fix for jobs -l -d, check if directory of job is already set (11170)
Diffstat (limited to 'Src/jobs.c')
-rw-r--r-- | Src/jobs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |