mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 12:59:21 +08:00
Cygwin: ps: make sure later format flags override earlier format flags
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
92b7ba4bb8
commit
6d0769efa9
@ -182,11 +182,15 @@ main (int argc, char *argv[])
|
|||||||
break;
|
break;
|
||||||
case 'f':
|
case 'f':
|
||||||
fflag = 1;
|
fflag = 1;
|
||||||
|
lflag = 0;
|
||||||
|
sflag = 0;
|
||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
usage (stdout, 0);
|
usage (stdout, 0);
|
||||||
case 'l':
|
case 'l':
|
||||||
|
fflag = 0;
|
||||||
lflag = 1;
|
lflag = 1;
|
||||||
|
sflag = 0;
|
||||||
break;
|
break;
|
||||||
case 'p':
|
case 'p':
|
||||||
proc_id = atoi (optarg);
|
proc_id = atoi (optarg);
|
||||||
@ -194,6 +198,8 @@ main (int argc, char *argv[])
|
|||||||
found_proc_id = false;
|
found_proc_id = false;
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
|
fflag = 0;
|
||||||
|
lflag = 0;
|
||||||
sflag = 1;
|
sflag = 1;
|
||||||
break;
|
break;
|
||||||
case 'u':
|
case 'u':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user