Anonymous | Login | 2024-05-02 21:20 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Type | Date Submitted | Last Update | ||
0000693 | [1003.1(2013)/Issue7+TC1] Shell and Utilities | Editorial | Clarification Requested | 2013-05-07 21:06 | 2019-06-10 08:55 | ||
Reporter | steffen | View Status | public | ||||
Assigned To | |||||||
Priority | normal | Resolution | Accepted As Marked | ||||
Status | Closed | ||||||
Name | Steffen Nurpmeso | ||||||
Organization | |||||||
User Reference | |||||||
Section | XCU, chapter 4, make(1) | ||||||
Page Number | 2941 | ||||||
Line Number | 97291-97309 | ||||||
Interp Status | Approved | ||||||
Final Accepted Text | Note: 0001631 | ||||||
Summary | 0000693: Clarification on export status of make variables | ||||||
Description |
Whereas the standard defines exactly the significance of the sources of macros / variables (command line, MAKEFLAGS environment variable, environment content, in the Makefile), it does not talk about the resulting export status of the macro / variable that will be passed down the call chain. This shell snippet can be used for a quick test: #!/bin/sh - [ -z "${MAKE}" ] && MAKE=make SHELLVAR=shell export SHELLVAR MAKE cat > t1.make << \! SHELLVAR = t1 all: @$(MAKE) -f t2.make all ! cat > t2.make << \! all: @echo "Should echo t1, but echoes $(SHELLVAR)" ! ${MAKE} -f t1.make all rm -f t1.make t2.make GNU make (3.82, Slackware 14; 3.81, Mac OS X) echoes "t1", FreeBSD 10.0 make(1), NetBSD 6.99.19 make(1), OpenBSD 5.3 make(1) as well as smake(1) 1.2 echo "shell". |
||||||
Desired Action |
On page 2941, append to the paragraph on the lines 97306-97309 Macros defined in the makefile(s) shall override macro definitions that occur before them in the makefile(s) and macro definitions from source 4. If the −e option is not specified, macros defined in the makefile(s) shall override macro definitions from source 3. Macros defined in the makefile(s) shall not override macro definitions from source 1 or source 2. the sentence The finally chosen macro definition shall be exported into the environment[, and passed down the call chain]. |
||||||
Tags | tc2-2008 | ||||||
Attached Files | |||||||
|
Issue History | |||
Date Modified | Username | Field | Change |
2013-05-07 21:06 | steffen | New Issue | |
2013-05-07 21:06 | steffen | Name | => Steffen Nurpmeso |
2013-05-07 21:06 | steffen | Section | => XCU, chapter 4, make(1) |
2013-05-07 21:06 | steffen | Page Number | => 2941 |
2013-05-07 21:06 | steffen | Line Number | => 97291-97309 |
2013-05-30 16:15 | eblake | Note Added: 0001630 | |
2013-05-30 16:16 | eblake | Note Edited: 0001630 | |
2013-05-30 16:32 | geoffclare | Note Added: 0001631 | |
2013-06-06 15:24 | geoffclare | Note Edited: 0001631 | |
2013-06-06 15:26 | geoffclare | Note Edited: 0001631 | |
2013-06-06 15:27 | geoffclare | Interp Status | => Pending |
2013-06-06 15:27 | geoffclare | Final Accepted Text | => Note: 0001631 |
2013-06-06 15:27 | geoffclare | Status | New => Interpretation Required |
2013-06-06 15:27 | geoffclare | Resolution | Open => Accepted As Marked |
2013-06-06 15:28 | geoffclare | Tag Attached: tc2-2008 | |
2013-09-06 04:55 | ajosey | Interp Status | Pending => Proposed |
2013-09-06 04:55 | ajosey | Note Added: 0001810 | |
2013-10-14 13:06 | ajosey | Interp Status | Proposed => Approved |
2013-10-14 13:06 | ajosey | Note Added: 0001891 | |
2019-06-10 08:55 | agadmin | Status | Interpretation Required => Closed |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |