about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2013-10-18 08:35:22 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2013-10-18 08:35:22 -0700
commit87c482d751b9c8211974352139cf7fedb9797f5f (patch)
tree6d0736ec8707c6f2b939a68e1bd3507011546f6c
parent978b5bcc8d21fce58369f810ef73bdbc434f33e7 (diff)
downloadzsh-87c482d751b9c8211974352139cf7fedb9797f5f.tar.gz
zsh-87c482d751b9c8211974352139cf7fedb9797f5f.tar.xz
zsh-87c482d751b9c8211974352139cf7fedb9797f5f.zip
31840: "read" needs IFS unset to avoid stripping whitespace in makefiles
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Unix/Command/_make2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9bcf6913c..84fa900ee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-10-18  Barton E. Schaefer  <schaefer@zsh.org>
+
+	* 31840: Completion/Unix/Command/_make: "read" used wrong $IFS
+
 2013-10-17  Barton E. Schaefer  <schaefer@zsh.org>
 
 	* 31836 (cf. 31823): Doc/Zsh/params.yo, Src/hist.c: add
diff --git a/Completion/Unix/Command/_make b/Completion/Unix/Command/_make
index 7b4c22466..e5a513f64 100644
--- a/Completion/Unix/Command/_make
+++ b/Completion/Unix/Command/_make
@@ -59,7 +59,7 @@ _make-expandVars() {
 }
 
 _make-parseMakefile () {
-  local input var val target dep TAB=$'\t' dir=$1 tmp
+  local input var val target dep TAB=$'\t' dir=$1 tmp IFS=
 
   while read input
   do