JDK-6238593 : Fix ps -aux command in test/com/sun/jdi/ShellScaffold.sh
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-03-10
  • Updated: 2011-03-08
  • Resolved: 2011-03-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u10Fixed 7 b13Fixed
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
EVALUATION See description.
01-05-2007

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
10-03-2005