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

Re: [PATCH 2/4] attr: Make zlistattr return an array, zdelattr takeseveral attrs



"zdelattr file attr1 attr2" deletes only attr2.

Index: Src/Modules/attr.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/attr.c,v
retrieving revision 1.4
diff -u -r1.4 attr.c
--- Src/Modules/attr.c	4 Nov 2009 11:34:03 -0000	1.4
+++ Src/Modules/attr.c	5 Nov 2009 05:17:33 -0000
@@ -154,7 +154,7 @@
 {
     int ret = 0, slen;
     int symlink = OPT_ISSET(ops, 'h');
-    char *file = argv[0], **attr = &argv[1];
+    char *file = argv[0], **attr = argv;
 
     unmetafy(file, &slen);
     while (*++attr) {



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