From ce1affa2acfa0151ae3312f09a1a5e89647afe7a Mon Sep 17 00:00:00 2001 From: Garance A Drosehn Date: Sun, 20 Jun 2004 22:31:37 +0000 Subject: 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...) --- bin/ps/print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/ps/print.c b/bin/ps/print.c index 8af0e06783529..76e29abba51bb 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; } -- cgit v1.3