Fixed `alist' command at whatnow prompt.
[mmh] / uip / whatnow.c
index e3a411a..798d0e2 100644 (file)
@@ -46,7 +46,7 @@ static struct swit whatnowswitches[] = {
 #define EDITRSW  0
        { "editor editor", 0 },
 #define PRMPTSW  1
-       { "prompt string", 4 },
+       { "prompt string", 0 },
 #define VERSIONSW  2
        { "Version", 0 },
 #define HELPSW  3
@@ -117,10 +117,7 @@ main(int argc, char **argv)
        FILE *f;  /* read pointer for bgnd proc */
        int n;  /* set on -n to detach command */
 
-#ifdef LOCALE
        setlocale(LC_ALL, "");
-#endif
-
        invo_name = mhbasename(argv[0]);
 
        /* read user profile/context */
@@ -302,8 +299,7 @@ main(int argc, char **argv)
                        ** List attachments on current draft.
                        */
                        snprintf(buf, sizeof buf, "anno -list -comp '%s' "
-                                       "-number all -text IGNORE '%s'",
-                                       attach_hdr, drft);
+                                       "-number '%s'", attach_hdr, drft);
                        if (system(buf) != 0) {
                                advise(NULL, "Could not list attachment headers.");
                        }