Q68381: The D Modifier to $? Is Broken in NMAKE Version 1.11
Article: Q68381
Product(s): See article
Version(s): 1.11 | 1.11
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | buglist1.11 fixlist1.12 | mspl13_basic
Last Modified: 24-JAN-1991
The D modifier to the $? macro is supposed to return the directory and
drive portion of the dependent. This does not work properly with NMAKE
version 1.11. Instead, the full pathname and filename are returned.
This was corrected in NMAKE version 1.12, which shipped with Microsoft
COBOL version 4.00.
Sample Makefile
---------------
all : c:\dos\command.com
echo The D modifier of $? is $(?D)
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
Copyright Microsoft Corporation 1986-2002.