Bug 12942

Summary: m4: len(`') returns `'
Product: Base System Reporter: ca+freebsd <ca+freebsd>
Component: binAssignee: Gregory Neil Shapiro <gshapiro>
Status: Closed FIXED    
Severity: Affects Only Me CC: ca+freebsd
Priority: Normal    
Version: 3.2-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description ca+freebsd 1999-08-03 17:00:01 UTC
the len function in /usr/bin/m4 returns an empty string
if given an empty string as argument instead of 0.

Fix: Patch (fixes this problem, side-effects unknown...)
How-To-Repeat: 
$ echo 'len()' | m4

$ echo 'len()' | gm4
0
Comment 1 Gregory Neil Shapiro freebsd_committer freebsd_triage 2001-04-24 22:34:06 UTC
Responsible Changed
From-To: freebsd-bugs->gshapiro

An easy bug to fix.
Comment 2 Gregory Neil Shapiro freebsd_committer freebsd_triage 2001-05-29 04:33:05 UTC
State Changed
From-To: open->feedback

A fix has been committed to the HEAD (CURRENT).  This PR will be closed 
when it is committed to RELENG_4 (STABLE).
Comment 3 Gregory Neil Shapiro freebsd_committer freebsd_triage 2001-06-10 18:53:08 UTC
State Changed
From-To: feedback->closed

The fix has been MFC'ed into RELENG_4 (-STABLE).