Microsoft KB Archive/75079

= FIX: NMAKE 1.13 May Return U1002: Invalid Macro Invocation '$' =

Article ID: 75079

Article Last Modified on 10/23/2003

-

APPLIES TO


 * Microsoft Program Maintenance Utility 1.2, when used with:
 * Microsoft MS-DOS 6.22 Standard Edition

-



This article was previously published under Q75079



SYMPTOMS
NMAKE version 1.13 generates the following error when an &quot;extra&quot; dollar sign ($) is used in an environment variable:

fatal error U1002: syntax error : invalid macro invocation '$'



CAUSE
Unlike previous versions, NMAKE version 1.13 evaluates all environment variables as inherited macros at initialization time. Because the $ character indicates that a macro follows, NMAKE attempts to evaluate the character following the final dollar sign in the context of a macro. For example, using a command such as &quot;Prompt $p$g$&quot; to set the system prompt, and then using NMAKE 1.13, causes this error.



RESOLUTION
The online help for the U1002 error indicates that it occurs when a single dollar sign ($) appears without a macro name associated with it. This error can be eliminated by avoiding extraneous dollar signs in environment variables.



STATUS
Microsoft has confirmed this to be a problem in NMAKE version 1.13 for MS-DOS and OS/2. This problem was corrected in NMAKE version 1.2 for MS-DOS and OS/2.

Additional query words: 1.13 buglist1.13 fixlist1.20

Keywords: kbfix kb16bitonly KB75079

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.