seems like a bug that if you use -o but don't include 'tid', -T becomes a no-op?
ps -A -T | wc -l
ps -A -T -o name | wc -l
should this
dt = dirtree_read("/proc",
(TT.bits&(_PS_TID|_PS_TCNT)) ? get_threads : get_ps);
be
dt = dirtree_read("/proc",
((toys.optflags&FLAG_T) || (TT.bits&(_PS_TID|_PS_TCNT))) ?
get_threads : get_ps);
?
--
Elliott Hughes - http://who/enh - http://jessies.org/~enh/
Android native code/tools questions? Mail me/drop by/add me as a reviewer.
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net