summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2004-06-20 22:31:37 +0000
committergad <gad@FreeBSD.org>2004-06-20 22:31:37 +0000
commit26d7dd0b9aa02d3be9a728188219fea6344781ac (patch)
treeff277eb3845dfede8902cf3e9ea5a40bb287646a
parent2c5e2e94693c9159381f6e2e1ec3fb737fc89771 (diff)
downloadFreeBSD-src-26d7dd0b9aa02d3be9a728188219fea6344781ac.zip
FreeBSD-src-26d7dd0b9aa02d3be9a728188219fea6344781ac.tar.gz
From SUSv3:
Any [standard output] field need not be meaningful in all implementations. In such a case a hyphen ('-') should be output in place of the field value So have the `-O label' option print out the string " -" if the process has no label. Approved by: Silence from rwatson and green (when asked in March...)
-rw-r--r--bin/ps/print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c
index 8af0e06..76e29ab 100644
--- a/bin/ps/print.c
+++ b/bin/ps/print.c
@@ -774,7 +774,7 @@ out:
(void)printf("%-*s", v->width, string);
free(string);
} else
- (void)printf("%-*s", v->width, "");
+ (void)printf("%-*s", v->width, " -");
return;
}
OpenPOWER on IntegriCloud