[X2Go-Commits] [x2goclient] 69/139: deduplicate.sh: prevent word splitting when parsing otool's output.
git-admin at x2go.org
git-admin at x2go.org
Wed Jan 13 17:27:41 CET 2016
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch bugfix/osx
in repository x2goclient.
commit f053ede7ae5cd6376e46b09a6759dfa98fd5bb8b
Author: Mihai Moldovan <ionic at ionic.de>
Date: Thu Aug 27 04:59:27 2015 +0200
deduplicate.sh: prevent word splitting when parsing otool's output.
We want the raw bits.
---
debian/changelog | 2 ++
deduplicate.sh | 6 ++++++
2 files changed, 8 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 4cb6470..dadfb8d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -133,6 +133,8 @@ x2goclient (4.0.5.1-0x2go1) UNRELEASED; urgency=low
- deduplicate.sh: record crafted "library path" values in duplicates
replacement to_files array.
- deduplicate.sh: debug parse_otool_output fiercely for the time being.
+ - deduplicate.sh: prevent word splitting when parsing otool's output. We
+ want the raw bits.
* debian/control:
- Change apache2-dev | libc6-dev build dependency back to apache2-dev
only. Otherwise, apache2-dev is not installed at all, even though
diff --git a/deduplicate.sh b/deduplicate.sh
index 5e1000f..93a5c8f 100755
--- a/deduplicate.sh
+++ b/deduplicate.sh
@@ -24,6 +24,11 @@ set -x
typeset tmp_regex='^[[:space:]]+(.*)[[:space:]]\(compatibility version .*, current version .*\)'
+
+ # In this special case, we do not want read to perform any word splitting.
+ typeset oldifs="${IFS}"
+ IFS=''
+
typeset line=""
while read -r line; do
if [[ "${line}" =~ ${tmp_regex} ]]; then
@@ -31,6 +36,7 @@ set -x
fi
done <<< "${raw_output}"
+ IFS="${oldifs}"
set +x
return 0
}
--
Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
More information about the x2go-commits
mailing list