OSDN Git Service

Merge branch 'master' of https://android.googlesource.com/platform/external/toybox...
[android-x86/external-toybox.git] / toys / other / stat.c
index b998a0e..b5dfcc8 100644 (file)
@@ -189,8 +189,10 @@ void stat_main(void)
       "Device: %Dh/%dd\t Inode: %i\t Links: %h\n"
       "Access: (%a/%A)\tUid: (%5u/%8U)\tGid: (%5g/%8G)\n"
       "Access: %x\nModify: %y\nChange: %z";
+  char *terse_format = "%n %s %b %f %u %g %D %i %h %t %T %X %Y %Z %o";
 
   if (toys.optflags & FLAG_c) format = TT.fmt;
+  if (toys.optflags & FLAG_t) format = terse_format;
 
   for (i = 0; toys.optargs[i]; i++) {
     int L = toys.optflags & FLAG_L;