Page MenuHomeFreeBSD

D49622.1779121030.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D49622.1779121030.diff

diff --git a/bin/ps/ps.c b/bin/ps/ps.c
--- a/bin/ps/ps.c
+++ b/bin/ps/ps.c
@@ -349,20 +349,6 @@
*/
nselectors++;
break;
-#if 0
- case 'R':
- /*-
- * XXX - This un-standard option is still under
- * debate. This is what SUSv3 defines as
- * the `-U' option, and while it would be
- * nice to have, it could cause even more
- * confusion to implement it as `-R'.
- */
- add_list(&ruidlist, optarg);
- xkeep_implied = 1;
- nselectors++;
- break;
-#endif
case 'r':
sortby = SORTCPU;
break;
@@ -394,21 +380,29 @@
nselectors++;
break;
case 'U':
+ add_list(&ruidlist, optarg);
+ xkeep_implied = 1;
+ nselectors++;
+ break;
+ case 'u':
+#if 0
/*
- * POSIX says that '-U' should match on real user IDs,
- * not effective ones as we are doing here, which is
- * normally the behavior of option '-u' according to the
- * standard.
+ * This is the code we should replace the current one
+ * below with if changing the behavior of '-u' to abide
+ * by POSIX. However, POSIX option '-U' is really the
+ * one users want most of the time and '-u' has been
+ * a canned display for a very long time.
*/
add_list(&uidlist, optarg);
xkeep_implied = 1;
nselectors++;
break;
- case 'u':
+#else
parsefmt(ufmt, &varlist, 0);
sortby = SORTCPU;
_fmt = 1;
break;
+#endif
case 'v':
parsefmt(vfmt, &varlist, 0);
sortby = SORTMEM;

File Metadata

Mime Type
text/plain
Expires
Mon, May 18, 4:17 PM (14 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28718923
Default Alt Text
D49622.1779121030.diff (1 KB)

Event Timeline