Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: Re: Superfluous CRs trouble completion routines in Cygwin



[Redirected from -users to -workers]

On Oct 15,  6:02pm, Bart Schaefer wrote:
}
} I think the answer is that $_comp_setup in compinit should contain
} 
} 	local IFS=$'\r'"$IFS"

Upon further thought I believe it should instead set IFS to exactly
the expected string, rather than pulling in the IFS setting from the
surrounding environment.

Hence:


Index: Completion/compinit
===================================================================
diff -c -r1.9 compinit
--- Completion/compinit	24 Sep 2005 17:48:33 -0000	1.9
+++ Completion/compinit	16 Oct 2005 00:14:11 -0000
@@ -156,6 +156,7 @@
 # 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'
 



Messages sorted by: Reverse Date, Date, Thread, Author