1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-25 13:30:42 +02:00

fix for jobs -l -d, check if directory of job is already set (11170)

This commit is contained in:
Sven Wischnowsky 2000-05-05 07:18:59 +00:00
parent 6a93b85903
commit 82ca135d34
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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);
}