about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2005-10-17 14:56:16 +0000
committerBart Schaefer <barts@users.sourceforge.net>2005-10-17 14:56:16 +0000
commit4c213d57ac42b51e41fcbbb4a50968c12ea05d8a (patch)
treefea18a882f9485ccca9f202b45bce05e6d3f2bbe
parent20d2f66849691c30040d4c3b2584aa77d66d2049 (diff)
downloadzsh-4c213d57ac42b51e41fcbbb4a50968c12ea05d8a.tar.gz
zsh-4c213d57ac42b51e41fcbbb4a50968c12ea05d8a.tar.xz
zsh-4c213d57ac42b51e41fcbbb4a50968c12ea05d8a.zip
21880: add carriage return to IFS in completion context.
-rw-r--r--ChangeLog7
-rw-r--r--Completion/compinit1
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8eb035d79..160909e94 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-10-17  Bart Schaefer  <schaefer@brasslantern.com>
+
+	* 21880: Completion/compinit: explicitly set IFS to the usual
+	default string, plus carriage return, in case the surrounding
+	environment has messed with it or a file with CRLF line breaks
+	needs to be parsed.
+
 2005-10-17  Peter Stephenson  <pws@csr.com>
 
 	* unposted: Functions/Zle/define-composed-chars,
diff --git a/Completion/compinit b/Completion/compinit
index 76792fd0a..74a512fc3 100644
--- a/Completion/compinit
+++ b/Completion/compinit
@@ -156,6 +156,7 @@ _comp_options=(
 # and don't get confused by user's ZERR trap handlers.
 
 _comp_setup='setopt localoptions localtraps ${_comp_options[@]};
+             local IFS=$'\'\ \\t\\r\\n\\0\''
              exec </dev/null;
              trap - ZERR'