Date: Tue, 3 Aug 1999 08:36:17 -0700 (PDT) From: ca+freebsd@endmail.org To: FreeBSD-gnats-submit@freebsd.org Cc: ca+freebsd@endmail.org Subject: bin/12942: m4: len(`') returns `' Message-ID: <199908031536.IAA11408@zable.Sendmail.COM>
next in thread | raw e-mail | index | archive | help
>Number: 12942 >Category: bin >Synopsis: m4: len(`') returns `' >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 3 09:00:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Claus Assmann >Release: FreeBSD 3.2-STABLE i386 >Organization: Endmail.ORG >Environment: standard installation of FreeBSD 3.2-STABLE i386 or FreeBSD 2.2.7-RELEASE i386 >Description: the len function in /usr/bin/m4 returns an empty string if given an empty string as argument instead of 0. >How-To-Repeat: $ echo 'len()' | m4 $ echo 'len()' | gm4 0 >Fix: Patch (fixes this problem, side-effects unknown...) --- eval.c Mon Aug 2 21:53:42 1999 +++ /usr/src/usr.bin/m4/eval.c Mon Sep 7 15:09:13 1998 @@ -97,7 +97,7 @@ * have macro-or-builtin() type call. We adjust * argc to avoid further checking.. */ - if (argc == 3 && !*(argv[2]) && (td & ~STATIC) != LENGTYPE) + if (argc == 3 && !*(argv[2])) argc--; switch (td & ~STATIC) { >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908031536.IAA11408>