From: David Levine Date: Thu, 5 Dec 2013 01:38:11 +0000 (-0600) Subject: Added comment about not supporting trailing semicolons X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/a1349849b7d37f6ffd264005c1f945d64bb35858?ds=inline;hp=-c Added comment about not supporting trailing semicolons for aliases (in alias file). --- a1349849b7d37f6ffd264005c1f945d64bb35858 diff --git a/uip/aliasbr.c b/uip/aliasbr.c index a696e8a6..2e83d07c 100644 --- a/uip/aliasbr.c +++ b/uip/aliasbr.c @@ -104,6 +104,12 @@ akval (struct aka *ak, char *s) if (!s) return s; /* XXX */ + /* It'd be tempting to check for a trailing semicolon and remove + it. But that would break the EXMH alias parser on what would + then be valid expressions: + http://lists.gnu.org/archive/html/nmh-workers/2012-10/msg00039.html + */ + for (; ak; ak = ak->ak_next) { if (aleq (s, ak->ak_name)) { return akresult (ak);