From owner-freebsd-questions Tue Aug 20 15:19:56 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0CA8B37B400 for ; Tue, 20 Aug 2002 15:19:54 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B48943E65 for ; Tue, 20 Aug 2002 15:19:53 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.5/8.12.5) id g7KMJpAl000929; Tue, 20 Aug 2002 17:19:51 -0500 (CDT) (envelope-from dan) Date: Tue, 20 Aug 2002 17:19:51 -0500 From: Dan Nelson To: Jerry McAllister Cc: "Brian T. Schellenberger" , bill , freebsd-questions@FreeBSD.ORG Subject: Re: help a poor refuge from SCO UNIX (SysV) Message-ID: <20020820221951.GA86652@dan.emsphone.com> References: <200208201640.28030.bts@babbleon.org> <200208202150.g7KLowj11390@clunix.cl.msu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200208202150.g7KLowj11390@clunix.cl.msu.edu> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Aug 20), Jerry McAllister said: > > On Tuesday 20 August 2002 11:03 am, Dan Nelson wrote: > > | Note: some systems will process both BSD and SYSV ps arguments, > > | depending on whether you start with a dash. To be safe, always > > | leave the dash off when using BSD flags. "ps ax". > > > > Hmmm . . . but the FreeBSD man page documents using the dash for > > the BSD options. It always makes mea little nervous to > > deliberately depart from the man page. > > Use it the way the man page says. I don't understand that previous > statement being so generalized or universally made. In my experience > using the minus almost always works except for a couple of things and > there seem to be plenty that are unfriendly without it. To be specific: Tru64 and Linux both process ps commandline arguments this way. Linux: Unix options may be grouped and must be preceeded by a dash. BSD options may be grouped and must not be used with a dash. GNU long options are preceeded by two dashes. Tru64: ps [-aAdejflm] [-o specifier] [=header] ,... [-O specifier] [=header] ,... [-g glist] [-G glist] [-p plist] [-s slist] [-t tlist] [-u ulist] [-U ulist] [-n nlist] [Tru64 UNIX] The following BSD compatible options can be used with ps (note that these options are not prefixed with a - (dash) character): ps [aAeghjlLmsSTuvwx] [o specifier] [=header] ,... [O specifier] ,... [=header] [t tty] [process_number] -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message