[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')"
- [lmi-commits] [lmi] odd/multiarch updated (b2c1994 -> 11efcd0), Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch f6dd4d2 04/16: Record, in a comment, an idea for a "DO" variable, Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch 84ef873 02/16: Document some architecture-selection alternatives, Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch 97b368a 03/16: Document that "$("this is a quoted string")",
Greg Chicares <=
- [lmi-commits] [lmi] odd/multiarch 6535919 05/16: Broaden the scope of the 'clobber' target, Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch a70b3bc 10/16: Let 'set_arch.sh' set $PERFORM, Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch 60db190 01/16: Restore whitespace concinnity, Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch daee5d2 06/16: Remove commentary that is no longer useful, Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch 354d7ce 07/16: Remove redundant extra 'gcc' in wx 'vendor' string, Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch 3b7638d 12/16: Add a more radical alternative to 'clobber', Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch 923023d 09/16: Use 'set_arch.sh' instead of commented-out blocks of code, Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch 943d5b8 14/16: Install surrogates for proprietary graphics, Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch 341f8c5 08/16: Move a documentation stanza, Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch 70cf4ce 13/16: Insert $LMI_HOST into old '/opt/lmi/bin', Greg Chicares, 2019/04/10