Home | History | Annotate | Line # | Download | only in unit-tests
      1  1.6  rillig # $NetBSD: unexport.mk,v 1.6 2023/10/19 18:24:33 rillig Exp $
      2  1.1     apb 
      3  1.1     apb # pick up a bunch of exported vars
      4  1.2  rillig FILTER_CMD=	grep ^UT_
      5  1.1     apb .include "export.mk"
      6  1.1     apb 
      7  1.1     apb .unexport UT_ZOO UT_FOO
      8  1.1     apb 
      9  1.5  rillig UT_TEST=	unexport
     10  1.3  rillig 
     11  1.3  rillig # Until 2020-08-08, Var_UnExport had special handling for '\n', that code
     12  1.3  rillig # was not reachable though.  At that point, backslash-newline has already
     13  1.6  rillig # been replaced with a simple space, and expressions are not yet expanded.
     14  1.3  rillig UT_BEFORE_NL=	before
     15  1.3  rillig UT_AFTER_NL=	after
     16  1.3  rillig .export UT_BEFORE_NL UT_AFTER_NL
     17  1.3  rillig .unexport \
     18  1.3  rillig   UT_BEFORE_NL
     19  1.3  rillig .unexport ${.newline} UT_AFTER_NL
     20