Moved printing of initial greeting to beginning of announce()
authorCraig Leres <leres@ucbvax.Berkeley.EDU>
Sun, 23 Jan 1983 06:49:35 +0000 (22:49 -0800)
committerCraig Leres <leres@ucbvax.Berkeley.EDU>
Sun, 23 Jan 1983 06:49:35 +0000 (22:49 -0800)
SCCS-vsn: usr.bin/mail/lex.c 2.11

usr/src/usr.bin/mail/lex.c

index 613c606..6c7f331 100644 (file)
@@ -8,7 +8,7 @@
  * Lexical processing of commands.
  */
 
  * Lexical processing of commands.
  */
 
-static char *SccsId = "@(#)lex.c       2.10 %G%";
+static char *SccsId = "@(#)lex.c       2.11 %G%";
 
 char   *prompt = "& ";
 
 
 char   *prompt = "& ";
 
@@ -542,11 +542,11 @@ announce(pr)
        int vec[2], mdot;
        extern char *version;
 
        int vec[2], mdot;
        extern char *version;
 
+       if (pr && value("quiet") == NOSTR)
+               printf(greeting, version);
        mdot = newfileinfo();
        vec[0] = mdot;
        vec[1] = 0;
        mdot = newfileinfo();
        vec[0] = mdot;
        vec[1] = 0;
-       if (pr && value("quiet") == NOSTR)
-               printf(greeting, version);
        dot = &message[mdot - 1];
        if (msgCount > 0 && !noheader) {
                inithdr++;
        dot = &message[mdot - 1];
        if (msgCount > 0 && !noheader) {
                inithdr++;