summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-09-08 14:59:13 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-09-08 14:59:13 +0000
commitdb5833474132929bee368d381817e043d22dc767 (patch)
tree15e531884ba190ae6ba431eefe9fb437f385db1e /usr.bin
parent9ed26abfb19a3865ab208e075d261b087ae0b6ae (diff)
Fix comments in .mailrc where there is no space after the hash (#). Noted by pjanzen@foatdi.harvard.edu
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mail/lex.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/mail/lex.c b/usr.bin/mail/lex.c
index 73ef70c87b5..6e71b694a02 100644
--- a/usr.bin/mail/lex.c
+++ b/usr.bin/mail/lex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lex.c,v 1.17 1998/06/12 18:07:57 millert Exp $ */
+/* $OpenBSD: lex.c,v 1.18 1998/09/08 14:59:12 millert Exp $ */
/* $NetBSD: lex.c,v 1.10 1997/05/17 19:55:13 pk Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)lex.c 8.2 (Berkeley) 4/20/95";
#else
-static char rcsid[] = "$OpenBSD: lex.c,v 1.17 1998/06/12 18:07:57 millert Exp $";
+static char rcsid[] = "$OpenBSD: lex.c,v 1.18 1998/09/08 14:59:12 millert Exp $";
#endif
#endif /* not lint */
@@ -510,6 +510,8 @@ lex(word)
extern const struct cmd cmdtab[];
const struct cmd *cp;
+ if (word[0] == '#')
+ word = "#";
for (cp = &cmdtab[0]; cp->c_name != NULL; cp++)
if (isprefix(word, cp->c_name))
return(cp);