The following issue has been SUBMITTED. ====================================================================== http://austingroupbugs.net/view.php?id=1191 ====================================================================== Reported By: geoffclare Assigned To: ====================================================================== Project: 1003.1(2016)/Issue7+TC2 Issue ID: 1191 Category: Shell and Utilities Type: Omission Severity: Editorial Priority: normal Status: New Name: Geoff Clare Organization: The Open Group User Reference: Section: 2.2 Quoting Page Number: 2346 Line Number: 74697 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2018-04-13 14:33 UTC Last Modified: 2018-04-13 14:33 UTC ====================================================================== Summary: The list of special characters in 2.2 is missing '-' and '!' Description: Section 2.2 lists special characters that either always or sometimes need quoting if they are to represent themselves. It is missing the characters '-' and '!' which are sometimes special (in bracket expressions).
This appears to be an editorial oversight, since the purpose of this introductory text seems to be to warn shell script writers about which characters they need to think about quoting if they want them to be treated literally, rather than stating a normative requirement about which characters can be special. Luckily the lists here are not referenced by places such as 2.2.3; had that been the case, this would be a non-editorial matter. The text here also misuses the term "may", which is supposed to indicate "a feature or behavior that is optional for an implementation" (XBD 1.5). Desired Action: Change:<blockquote>and the following may need to be quoted under certain circumstances. That is, these characters may be special depending on conditions described elsewhere in this volume of POSIX.1-2008:<pre>* ? [ # ~ = %</pre></blockquote>to:<blockquote>and the following might need to be quoted under certain circumstances. That is, these characters are sometimes special depending on conditions described elsewhere in this volume of POSIX.1-2008:<pre>* ? [ - ! # ~ = %</pre></blockquote> ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2018-04-13 14:33 geoffclare New Issue 2018-04-13 14:33 geoffclare Name => Geoff Clare 2018-04-13 14:33 geoffclare Organization => The Open Group 2018-04-13 14:33 geoffclare Section => 2.2 Quoting 2018-04-13 14:33 geoffclare Page Number => 2346 2018-04-13 14:33 geoffclare Line Number => 74697 2018-04-13 14:33 geoffclare Interp Status => --- ======================================================================
