A NOTE has been added to this issue. ====================================================================== https://austingroupbugs.net/view.php?id=337 ====================================================================== Reported By: dwheeler Assigned To: ajosey ====================================================================== Project: 1003.1(2008)/Issue 7 Issue ID: 337 Category: Shell and Utilities Type: Enhancement Request Severity: Objection Priority: normal Status: Under Review Name: David A. Wheeler Organization: User Reference: Section: make Page Number: 2908-2929 Line Number: 95549-95822 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2010-10-17 17:05 UTC Last Modified: 2022-10-03 15:21 UTC ====================================================================== Summary: Add standard support for "!=" (macro shell assignment) in make ====================================================================== Relationships ID Summary ---------------------------------------------------------------------- related to 0000330 In make, add support for assignments &q... related to 0000512 Add macro functions to make ======================================================================
---------------------------------------------------------------------- (0005987) geoffclare (manager) - 2022-10-03 15:21 https://austingroupbugs.net/view.php?id=337#c5987 ---------------------------------------------------------------------- After D2.1 page 2942 line 98667 section make, add:<blockquote>The following form defines a delayed-expansion macro (replacing any previous definition of the macro named by <i>string1</i>):<pre><i>string1</i> != <b>[</b><i>string2</i><b>]</b></pre>by immediately expanding macros in <i>string2</i>, if any, and then executing the result as a shell command as if it were passed as the argument to the <i>system</i>() interface. The <i>make</i> utility shall capture the standard output from the shell execution and shall remove all whitespace at the beginning, remove a single trailing <newline> character (if there is one), and then replace all remaining <newline> characters with <space> characters to produce the value assigned to the macro named by <i>string1</i>. It shall not be an error if the shell command has non-zero exit status.</blockquote> On D2.1 page 2942 line 98687-98691 section make, change:<blockquote>In all cases the value of <i>string1</i> is defined as all characters from the first non-<blank> character to the last non-<blank> character, inclusive, before the =, ::=, ?=, or +=. Portable applications shall ensure that a <blank> precedes the ::=, ?=, or += in those forms to avoid any parsing ambiguity with implementations that permit <colon>, <question-mark>, or <plus-sign> in macro names as extensions.</blockquote>to:<blockquote>In all cases the value of <i>string1</i> is defined as all characters from the first non-<blank> character to the last non-<blank> character, inclusive, before the =, ::=, :::=, !=, ?=, or +=. Portable applications shall ensure that a <blank> precedes the ::=, :::=, !=, ?=, or += in those forms to avoid any parsing ambiguity with implementations that permit <colon>, <exclamation-mark>, <question-mark>, or <plus-sign> in macro names as extensions.</blockquote> Issue History Date Modified Username Field Change ====================================================================== 2010-10-17 17:05 dwheeler New Issue 2010-10-17 17:05 dwheeler Status New => Under Review 2010-10-17 17:05 dwheeler Assigned To => ajosey 2010-10-17 17:05 dwheeler Name => David A. Wheeler 2010-10-17 17:05 dwheeler Section => make 2010-10-17 17:05 dwheeler Page Number => 2908-2929 2010-10-17 17:05 dwheeler Line Number => 95549-95822 2010-10-18 16:37 mirabilos Note Added: 0000579 2010-10-18 17:34 yaneurabeya Note Added: 0000580 2010-10-18 17:41 dwheeler Note Added: 0000581 2010-10-18 19:37 dwheeler Note Added: 0000582 2010-10-19 03:50 dwheeler Note Added: 0000583 2010-10-19 04:27 psmith Note Added: 0000584 2010-10-19 17:12 dwheeler Note Added: 0000586 2010-12-02 16:53 eblake Note Added: 0000629 2011-11-07 05:45 ajosey Relationship added related to 0000330 2011-11-15 17:45 dwheeler Note Added: 0001012 2012-10-05 20:47 dwheeler Note Added: 0001391 2013-10-10 03:49 dwheeler Note Added: 0001870 2013-11-03 21:46 shware_systems Note Added: 0001955 2022-09-12 15:17 geoffclare Relationship added related to 0000512 2022-09-29 15:41 shware_systems Note Edited: 0001955 2022-10-03 15:21 geoffclare Note Added: 0005987 ======================================================================