United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6238593 Fix ps -aux command in test/com/sun/jdi/ShellScaffold.sh
JDK-6238593 : Fix ps -aux command in test/com/sun/jdi/ShellScaffold.sh

Details
Type:
Bug
Submit Date:
2005-03-10
Status:
Closed
Updated Date:
2011-03-08
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
core-svc
OS:
generic
Sub-Component:
debugger
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Backport:

Sub Tasks

Description
Hi!

Please apply the below patch to ShellScaffold.  Otherwise you get a
warning with procps version 3.2.0:

Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html

This is from the FAQ:

Why does "ps -aux" complain about a bogus '-'?

According to the POSIX and UNIX standards, the above command asks to
display all processes with a TTY (generally the commands users are
running) plus all processes owned by a user named "x". If that user
doesn't exist, then ps will assume you really meant "ps aux". The
warning is given to gently break you of a habit that will cause you
trouble if a user named "x" were created.


###@###.### 2005-03-10 02:26:33 GMT

                                    

Comments
SUGGESTED FIX

Index: test/com/sun/jdi/ShellScaffold.sh
@@ -215,7 +215,7 @@
              psCmd="/usr/ucb/ps -axwww"
          else
              ulimit -c 0
-             psCmd="ps -axwww"
+             psCmd="ps axwww"
          fi
          ;;
        *)


###@###.### 2005-03-10 02:26:33 GMT
                                     
2005-03-10
EVALUATION

See description.
                                     
2007-05-01



Hardware and Software, Engineered to Work Together