summaryrefslogtreecommitdiff
path: root/bin/ksh/edit.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2013-06-03 15:42:00 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2013-06-03 15:42:00 +0000
commit684fcab0df2b3974c7632ebd73f80cb05ac0dcb8 (patch)
tree1d5e180719391339daba66aab9835f8fe1918f30 /bin/ksh/edit.c
parentebd506cd95f888796ecca05fb6124d563f48f6ad (diff)
add : to special chars.
identical diffs from plhk sdf.org and leva ecentrum.hu. ok deraadt.
Diffstat (limited to 'bin/ksh/edit.c')
-rw-r--r--bin/ksh/edit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/edit.c b/bin/ksh/edit.c
index a50c3beb356..32d07147fda 100644
--- a/bin/ksh/edit.c
+++ b/bin/ksh/edit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: edit.c,v 1.37 2013/01/21 10:13:24 halex Exp $ */
+/* $OpenBSD: edit.c,v 1.38 2013/06/03 15:41:59 tedu Exp $ */
/*
* Command line editing - common code
@@ -804,7 +804,7 @@ x_escape(const char *s, size_t len, int (*putbuf_func) (const char *, size_t))
int rval = 0;
for (add = 0, wlen = len; wlen - add > 0; add++) {
- if (strchr("\"#$&'()*;<=>?[\\]`{|}", s[add]) ||
+ if (strchr("\"#$&'()*:;<=>?[\\]`{|}", s[add]) ||
strchr(ifs, s[add])) {
if (putbuf_func(s, add) != 0) {
rval = -1;