Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: stat -g



Documentation of `stat' says that `-g' should force `-s' on, 
this wasn't the case in zsh-3.1.6-bart-7.


--- Src/Modules/stat.c.old	Fri Oct 22 10:34:02 1999
+++ Src/Modules/stat.c	Fri Oct 22 10:51:54 1999
@@ -462,6 +462,10 @@
 	for (aptr = args; *aptr; aptr++)
 	    nargs++;
 
+    if (ops['g']) {
+	flags |= STF_GMT;
+	ops['s'] = 1;
+    }
     if (ops['s'] || ops['r'])
 	flags |= STF_STRING;
     if (ops['r'] || !ops['s'])
@@ -470,8 +474,6 @@
 	flags |= STF_FILE;
     if (ops['t'])
 	flags |= STF_NAME;
-    if (ops['g'])
-	flags |= STF_GMT;
 
     if (!(arrnam || hashnam)) {
 	if (nargs > 1)


-- 
Alexandre Duret-Lutz




Messages sorted by: Reverse Date, Date, Thread, Author