[PATCH] D36064: [docker] Fix unmatched quote problem in here-document on older versions of bash
don hinton via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 30 12:31:00 PDT 2017
hintonda created this revision.
When outputing usage, emit here-document directly instead of
saving in a variable first -- avoids problem with bash 3.2.57 where an
unmatched ' in the here-document results in the following error:
./build_docker_image.sh: line 135: unexpected EOF while looking for matching `''
bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin16)
https://reviews.llvm.org/D36064
Files:
utils/docker/build_docker_image.sh
Index: utils/docker/build_docker_image.sh
===================================================================
--- utils/docker/build_docker_image.sh
+++ utils/docker/build_docker_image.sh
@@ -15,7 +15,7 @@
BUILDSCRIPT_ARGS=""
function show_usage() {
- usage=$(cat << EOF
+ cat << EOF
Usage: build_docker_image.sh [options] [-- [cmake_args]...]
Available options:
@@ -64,8 +64,6 @@
-DCLANG_ENABLE_BOOTSTRAP=ON \
-DCLANG_BOOTSTRAP_TARGETS="install-clang;install-clang-headers"
EOF
-)
- echo "$usage"
}
SEEN_INSTALL_TARGET=0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36064.108838.patch
Type: text/x-patch
Size: 549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170730/9f61769f/attachment.bin>
More information about the llvm-commits
mailing list