Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Aug 2002 17:19:51 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Jerry McAllister <jerrymc@clunix.cl.msu.edu>
Cc:        "Brian T. Schellenberger" <bts@babbleon.org>, bill <bill@techservsys.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: help a poor refuge from SCO UNIX (SysV)
Message-ID:  <20020820221951.GA86652@dan.emsphone.com>
In-Reply-To: <200208202150.g7KLowj11390@clunix.cl.msu.edu>
References:  <200208201640.28030.bts@babbleon.org> <200208202150.g7KLowj11390@clunix.cl.msu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020820221951.GA86652>