aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rames <alexandre.rames@linaro.org>2016-07-28 08:32:10 +0000
committerLinaro Android Code Review <android-review@review.linaro.org>2016-07-28 08:32:10 +0000
commit54d0f7b5749ee4eb615863d420ce03c331e16541 (patch)
tree12bc3fe06340ef1862f1c1f265b8e01ebbd09c78
parent12eb5c80bdc40487a22164ee89ae6aa381021fea (diff)
parentbdde93c8c30b67cd8b3e8f0f61023c3c99fbd595 (diff)
downloadart-build-scripts-54d0f7b5749ee4eb615863d420ce03c331e16541.tar.gz
Merge "utils: Explain why setting extglob is safe"
-rw-r--r--utils/utils.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/utils.sh b/utils/utils.sh
index 47480a49..b3a8b755 100644
--- a/utils/utils.sh
+++ b/utils/utils.sh
@@ -46,7 +46,10 @@ init_coloured_logging() {
init_shell() {
enable_error_on_unset_expansion
- # Use extended globs for pattern matching.
+ # Use extended globs for pattern matching. Many distributions including Ubuntu
+ # enable extglob by default in interactive shells, so there should be no
+ # undesirable interaction with any sourced Android script (e.g.
+ # build/envsetup.sh).
shopt -s extglob
}