public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin/main] Cygwin: document showing command line on ps -f
Date: Thu,  1 Feb 2024 11:45:08 +0000 (GMT)	[thread overview]
Message-ID: <20240201114510.316CE38582A4@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=76760707ec97d294b16c37712926e5d1ac52026e

commit 76760707ec97d294b16c37712926e5d1ac52026e
Author:     Corinna Vinschen <corinna@vinschen.de>
AuthorDate: Thu Feb 1 12:44:28 2024 +0100
Commit:     Corinna Vinschen <corinna@vinschen.de>
CommitDate: Thu Feb 1 12:44:28 2024 +0100

    Cygwin: document showing command line on ps -f
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/doc/utils.xml | 5 +++--
 winsup/utils/ps.cc   | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/winsup/doc/utils.xml b/winsup/doc/utils.xml
index 692dae38f5b4..1d3fe909b0d2 100644
--- a/winsup/doc/utils.xml
+++ b/winsup/doc/utils.xml
@@ -2496,7 +2496,7 @@ $ profiler du -khs .
       <screen>
  -a, --all       show processes of all users
  -e, --everyone  show processes of all users
- -f, --full      show process uids, ppids
+ -f, --full      show process uids, ppids and command line
  -h, --help      output usage information and exit
  -l, --long      show process uids, ppids, pgids, winpids
  -p, --process   show information for specified PID
@@ -2532,7 +2532,8 @@ With no options, ps outputs the long format by default
       <literal>-e</literal> option, all user's processes (and system processes)
       are listed. There are historical UNIX reasons for the synonomous options,
       which are functionally identical. The <literal>-f</literal> option
-      outputs a "full" listing with usernames for UIDs. The
+      outputs a "full" listing with usernames for UIDs and the command line
+      of the process, rather than just the full path to the executable. The
       <literal>-l</literal> option is the default display mode, showing a
       "long" listing with all the above columns. The other display option is
       <literal>-s</literal>, which outputs a shorter listing of just PID, TTY,
diff --git a/winsup/utils/ps.cc b/winsup/utils/ps.cc
index 3bc8afed4062..196579c581b5 100644
--- a/winsup/utils/ps.cc
+++ b/winsup/utils/ps.cc
@@ -110,7 +110,7 @@ Report process status\n\
 \n\
  -a, --all       show processes of all users\n\
  -e, --everyone  show processes of all users\n\
- -f, --full      show process uids, ppids\n\
+ -f, --full      show process uids, ppids and command line\n\
  -h, --help      output usage information and exit\n\
  -l, --long      show process uids, ppids, pgids, winpids\n\
  -p, --process   show information for specified PID\n\

                 reply	other threads:[~2024-02-01 11:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240201114510.316CE38582A4@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).