Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site umcp-cs.UUCP Path: utzoo!linus!decvax!harpo!seismo!rlgvax!cvl!umcp-cs!chris From: chris@umcp-cs.UUCP Newsgroups: net.unix-wizards Subject: Re: Parenthesized arguments in a "ps" list Message-ID: <3762@umcp-cs.UUCP> Date: Sun, 13-Nov-83 03:34:53 EST Article-I.D.: umcp-cs.3762 Posted: Sun Nov 13 03:34:53 1983 Date-Received: Mon, 14-Nov-83 02:15:34 EST References: <1466@tekig1.UUCP> Organization: Univ. of Maryland, Computer Science Dept. Lines: 17 think we've been over this before... The reason that ps and derivatives (e.g. w) sometimes print commands in parentheses is that whoever wrote ps liked it that way. The parens indicate that the command overwrote its name, and that ps (w) is printing the name by which the command was invoked (and by which it will be logged in the accounting file). Basically, it's if (strcmp (proc->invocation, proc->argv[0]) != 0) printf ("(%s)", proc->invocation); Apparently in the case of a long environment variable, the program is getting confused, and thinks the command name was overwritten. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris.umcp-cs@CSNet-Relay