Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jan 2003 14:36:16 -0800 (PST)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/make var.c
Message-ID:  <200301152236.h0FMaGVx060676@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
marcel      2003/01/15 14:36:16 PST

  Modified files:
    usr.bin/make         var.c 
  Log:
  Change the handling of non-anchored global substitutions of the empty
  string from a silent implicit non-global substitution to a non-silent
  explicit fatal error. Archored substitutions are those containing '^'
  or '$'.
  The problem with changing the substitution to prevent an infinite
  number of matches is that it doesn't provide the necessary feedback
  to the user that there's a bug in the/a makefile. Reporting the bug
  without making the condition fatal makes the feedback mostly useless
  due to the way that make fails to prefix the error with program name,
  makefile file name and line number information.
  Note that global substitutions of the empty string anchored with '^'
  (start of string) or '$' (end of string) do not cause an infinite
  number of matches and are therefore not reported and hence are non-
  fatal.
  
  Suggested by: bde
  Tested with: buildworld
  
  Revision  Changes    Path
  1.42      +9 -8      src/usr.bin/make/var.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301152236.h0FMaGVx060676>