From 4c213d57ac42b51e41fcbbb4a50968c12ea05d8a Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Mon, 17 Oct 2005 14:56:16 +0000 Subject: 21880: add carriage return to IFS in completion context. --- ChangeLog | 7 +++++++ Completion/compinit | 1 + 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8eb035d79..160909e94 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-10-17 Bart Schaefer + + * 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 * 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