Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Re: Superfluous CRs trouble completion routines in Cygwin
- X-seq: zsh-workers 21879
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx, Hannu Koivisto <azure@xxxxxx>
- Subject: PATCH: Re: Superfluous CRs trouble completion routines in Cygwin
- Date: Sun, 16 Oct 2005 00:22:52 +0000
- In-reply-to: <1051015180240.ZM22900@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <87irvzys44.fsf@xxxxxxxxxxxxxxxx> <1051015180240.ZM22900@xxxxxxxxxxxxxxxxxxxxxxx>
[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