[haiku-bugs] Re: [Haiku] #10156: [ps] Implement -o option to customize the program output

  • From: "korli" <trac@xxxxxxxxxxxx>
  • Date: Fri, 22 Nov 2013 08:35:14 -0000

#10156: [ps] Implement -o option to customize the program output
-----------------------------------------------+---------------------------
   Reporter:  diger                            |      Owner:  siarzhuk
       Type:  enhancement                      |     Status:  assigned
   Priority:  normal                           |  Milestone:  R1
  Component:  Applications/Command Line Tools  |    Version:
 Resolution:                                   |  R1/Development
 Blocked By:                                   |   Keywords:
Has a Patch:  1                                |   Blocking:
                                               |   Platform:  All
-----------------------------------------------+---------------------------

Comment (by korli):

 Review:
 * include header are alphabetically sorted.
 * two blank lines between functions
 * {{{ struct option { }}}  =>   "{" goes next line.
 * {{{ while (printCustomized[printCustomizedPos]) { }}} should be {{{
 while (printCustomized[printCustomizedPos] != '\0') { }}}
 * {{{ if (printCustomized[printCustomizedPos] == ',')
 printCustomizedPos++;  }}}  should be tabbed to the right.
 * {{{ for (int i = 0; sOptions[i].id; ++i) { }}} should be  {{{ for (int i
 = 0; sOptions[i].id != 0; i++) { }}}


 See also http://pubs.opengroup.org/onlinepubs/007904975/utilities/ps.html
 One is supposed to be able to rename a column with -o Team=Process.
 Multiple -o options are also possible. Might be out of the scope of this
 task/enhancement.

--
Ticket URL: <http://dev.haiku-os.org/ticket/10156#comment:5>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: