lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] odd/multiarch 97b368a 03/16: Document that "$("this


From: Greg Chicares
Subject: [lmi-commits] [lmi] odd/multiarch 97b368a 03/16: Document that "$("this is a quoted string")"
Date: Wed, 10 Apr 2019 22:15:07 -0400 (EDT)

branch: odd/multiarch
commit 97b368adffd4a82585574f0a268128921eb274e0
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Document that "$("this is a quoted string")"
---
 set_arch.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/set_arch.sh b/set_arch.sh
index c5c7dd7..14b5f43 100755
--- a/set_arch.sh
+++ b/set_arch.sh
@@ -76,6 +76,15 @@ unset -v WINEPATH
 
 # double quotes inside double quotes inside $()--wrong? IOW:
 #  " $( "is this string quoted?" ) "
+# answer: yes, it's quoted: everything inside '$()' is parsed separately
+#   
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_03
+# [2.3/5] "The characters found from the beginning of the
+# substitution to its end, allowing for any recursion necessary
+# to recognize embedded constructs, shall be included unmodified
+# in the result token, including any embedded or enclosing
+# substitution operators or quotes. The token shall not be
+# delimited by the end of the substitution."
+#
 case "$LMI_BUILD" in
     (*-*-linux*)
         w0="$(winepath -w "$localbindir" | sed -e's/\\/\\\\/g')"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]