A NOTE has been added to this issue. ====================================================================== https://www.austingroupbugs.net/view.php?id=249 ====================================================================== Reported By: dwheeler Assigned To: ajosey ====================================================================== Project: 1003.1(2008)/Issue 7 Issue ID: 249 Category: Shell and Utilities Type: Enhancement Request Severity: Objection Priority: normal Status: Under Review Name: David A. Wheeler Organization: User Reference: Section: 2.2 Quoting Page Number: 2298-2299 Line Number: 72348-72401 Interp Status: --- Final Accepted Text: Previously accepted text is in https://www.austingroupbugs.net/view.php?id=249#c590. ====================================================================== Date Submitted: 2010-04-30 21:42 UTC Last Modified: 2022-02-25 02:56 UTC ====================================================================== Summary: Add standard support for $'...' in shell ====================================================================== Relationships ID Summary ---------------------------------------------------------------------- parent of 0001413 incorrect description of how a hexadeci... related to 0000322 Defect in XCU File Format Notation related to 0000985 quote removal missing from case stateme... ======================================================================
---------------------------------------------------------------------- (0005714) calestyo (reporter) - 2022-02-25 02:56 https://www.austingroupbugs.net/view.php?id=249#c5714 ---------------------------------------------------------------------- Sorry if I state something which has been clarified somewhere already, but from If a backslash is followed by any sequence not listed above or if \e, \cX, \uXXXX, or \UXXXXXXXX yields a character that is not present in the current locale, the result is implementation-defined. I'd assume that the general idea is, that that some escape sequences produce byte sequences for a given character with respect to the *current* locale (i.e. category LC_CTYPE, as set by shell variables like LANG, LC_CTYPE, LC_ALL), which would make quite some sense, of course. However, the standard should clearly specify *which* of them are: - subject to the current locale \e \cX \uXXXX \UXXXXXXXX => there should be some rationale why these are actually subject to the current locale. - subject to the "lexical" locale (which is immutable) I'd assume at least: \" \' \\ but possibly also any others, which POSIX requests to be present in any locale: \a \b \f \t \v these are anyway invariant: \n \r - generally not subject to any locale: I'd assume \xXX and \XXX Further... there are quite some "implementation-defined"s in the above text. Are these really necessary, because there are already differing implementations (for which there is no hope that they'd reconcile? Something like the "implementation-defined" from the quoted text from above just cries for the problems of tomorrow. One implementation may e.g. simply ignore any \uXXXX that doesn't produce a valid char, another may use some replacement char. People willy rely in their scripts on one or the other behaviour, thus we get some non-portability, when we leave this things open. To the least one should reserve any not yet standardised escape sequences for the future, i.e. making the results implementation-defined, but not allow compliant implementations to use them for their own purposes (thereby introducing extensions, which again may cause portability issues in the future). Issue History Date Modified Username Field Change ====================================================================== 2010-04-30 21:42 dwheeler New Issue 2010-04-30 21:42 dwheeler Status New => Under Review 2010-04-30 21:42 dwheeler Assigned To => ajosey 2010-04-30 21:42 dwheeler Name => David A. Wheeler 2010-04-30 21:42 dwheeler Section => 2.2 Quoting 2010-04-30 21:42 dwheeler Page Number => 2298-2299 2010-04-30 21:42 dwheeler Line Number => 72348-72401 2010-09-16 16:17 nick Note Added: 0000548 2010-09-18 18:12 Don Cragun Relationship added related to 0000322 2010-10-01 12:48 geoffclare Note Added: 0000560 2010-10-06 01:26 nick Tag Attached: c99 2010-10-08 17:28 mirabilos Note Added: 0000565 2010-10-25 06:17 Don Cragun Note Added: 0000590 2010-10-25 14:51 Don Cragun Note Edited: 0000590 2010-10-25 15:55 Don Cragun Note Edited: 0000590 2010-10-26 06:44 Don Cragun Note Edited: 0000590 2010-10-26 20:39 Don Cragun Note Edited: 0000590 2010-10-26 20:40 Don Cragun Note Edited: 0000590 2010-10-26 20:40 Don Cragun Note Edited: 0000590 2010-10-26 20:45 Don Cragun Note Edited: 0000590 2010-10-26 21:04 Don Cragun Note Edited: 0000590 2010-10-27 03:29 Don Cragun Note Edited: 0000590 2010-11-04 16:07 nick Note Added: 0000599 2010-11-05 02:34 Don Cragun Note Edited: 0000590 2010-11-05 03:00 Don Cragun Note Added: 0000601 2010-11-05 03:04 Don Cragun Note Edited: 0000601 2010-11-05 14:52 nick Note Added: 0000609 2010-11-05 14:54 nick File Added: n1534.htm 2010-11-05 14:56 nick File Added: n1534_original.htm 2010-11-11 16:40 Don Cragun Note Edited: 0000590 2010-11-11 16:42 Don Cragun Note Edited: 0000590 2010-11-11 16:44 Don Cragun Interp Status => --- 2010-11-11 16:44 Don Cragun Final Accepted Text => See https://www.austingroupbugs.net/view.php?id=249#c590 2010-11-11 16:44 Don Cragun Status Under Review => Resolved 2010-11-11 16:44 Don Cragun Resolution Open => Accepted As Marked 2010-11-11 16:44 Don Cragun Tag Attached: issue8 2010-12-09 16:12 Don Cragun Note Edited: 0000590 2015-07-31 15:59 stephane Issue Monitored: stephane 2015-08-20 15:24 nick Note Edited: 0000590 2015-08-20 15:25 nick Note Edited: 0000590 2015-08-20 15:31 nick Note Added: 0002793 2015-08-20 15:32 nick Note Edited: 0002793 2015-08-20 15:33 nick Note Edited: 0002793 2015-09-03 16:40 rhansen Note Added: 0002809 2015-09-03 16:45 rhansen Note Edited: 0002809 2015-09-03 16:48 rhansen Note Edited: 0002809 2015-09-03 17:00 rhansen Note Edited: 0002809 2015-09-03 17:05 rhansen Note Edited: 0002809 2015-09-03 17:10 rhansen Tag Attached: UTF-8_Locale 2015-09-10 20:25 rhansen Note Added: 0002824 2015-09-10 20:26 rhansen Note Edited: 0002824 2015-09-10 20:26 rhansen Note Edited: 0002824 2015-09-10 20:27 rhansen Note Edited: 0002809 2015-10-08 06:43 Don Cragun Final Accepted Text See https://www.austingroupbugs.net/view.php?id=249#c590 => Previously accepted text is in https://www.austingroupbugs.net/view.php?id=249#c590. 2015-10-08 06:43 Don Cragun Resolution Accepted As Marked => Reopened 2015-10-08 16:32 Don Cragun Status Resolved => Under Review 2015-10-08 16:41 rhansen Relationship added related to 0000985 2015-11-09 21:10 steffen Note Added: 0002893 2015-11-13 19:19 shware_systems Note Added: 0002922 2015-11-13 21:22 steffen Note Added: 0002923 2015-11-13 21:24 steffen Note Added: 0002925 2015-11-13 23:23 shware_systems Note Added: 0002929 2015-11-14 14:26 steffen Note Added: 0002942 2016-06-06 21:07 steffen Note Added: 0003247 2016-06-07 19:50 shware_systems Note Added: 0003248 2016-06-07 19:53 shware_systems Note Edited: 0003248 2016-06-07 20:25 steffen Note Added: 0003249 2016-06-07 20:27 steffen Note Added: 0003250 2016-06-08 06:51 shware_systems Note Added: 0003251 2016-06-08 10:43 steffen Note Added: 0003252 2016-06-08 19:55 shware_systems Note Added: 0003254 2016-06-09 13:55 steffen Note Added: 0003256 2016-06-09 14:10 stephane Note Added: 0003257 2016-06-09 14:15 shware_systems Note Added: 0003258 2016-06-09 14:18 stephane Note Edited: 0003257 2016-06-09 14:26 stephane Note Edited: 0003257 2016-06-09 15:07 steffen Note Added: 0003259 2016-06-09 18:42 stephane Note Added: 0003262 2021-01-31 05:37 calestyo Issue Monitored: calestyo 2021-01-31 05:38 calestyo Note Added: 0005221 2021-01-31 06:48 stephane Note Added: 0005222 2021-01-31 17:08 calestyo Note Added: 0005223 2021-01-31 18:31 stephane Note Edited: 0005222 2021-01-31 18:34 stephane Note Edited: 0005222 2021-02-04 21:38 dwheeler Note Added: 0005226 2021-02-05 16:02 dwheeler Note Added: 0005227 2021-02-05 16:08 dwheeler Note Added: 0005228 2021-02-05 16:42 calestyo Note Added: 0005229 2021-02-18 17:11 nick Relationship added parent of 0001413 2021-03-15 20:38 mirabilos Note Added: 0005273 2021-03-16 09:40 geoffclare Note Added: 0005275 2022-01-14 20:20 calestyo Issue End Monitor: calestyo 2022-01-14 20:20 calestyo Issue Monitored: calestyo 2022-02-25 02:56 calestyo Note Added: 0005714 ======================================================================