diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2005-10-17 14:56:16 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2005-10-17 14:56:16 +0000 |
commit | 4c213d57ac42b51e41fcbbb4a50968c12ea05d8a (patch) | |
tree | fea18a882f9485ccca9f202b45bce05e6d3f2bbe | |
parent | 20d2f66849691c30040d4c3b2584aa77d66d2049 (diff) | |
download | zsh-4c213d57ac42b51e41fcbbb4a50968c12ea05d8a.tar.gz zsh-4c213d57ac42b51e41fcbbb4a50968c12ea05d8a.tar.xz zsh-4c213d57ac42b51e41fcbbb4a50968c12ea05d8a.zip |
21880: add carriage return to IFS in completion context.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | Completion/compinit | 1 |
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' |