summaryrefslogtreecommitdiff
path: root/bin/ksh
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2003-05-05 22:02:34 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2003-05-05 22:02:34 +0000
commitabca225368d79d4a51edd05004daf0eb9cecffa4 (patch)
tree6f8c11788782f26abbfe3215948ddfb6d513def5 /bin/ksh
parent3683e5a4d99d25a2992c45fd5b687332f758740b (diff)
in emacs or vi mode, if vi-tabcomplete or vi-esccomplete mode is on, this
escapes "`" so by instance cd works correctly; millert@ and pvalchev@ ok.
Diffstat (limited to 'bin/ksh')
-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 02bd31c17a7..06963375fb2 100644
--- a/bin/ksh/edit.c
+++ b/bin/ksh/edit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: edit.c,v 1.15 2002/06/09 05:47:27 todd Exp $ */
+/* $OpenBSD: edit.c,v 1.16 2003/05/05 22:02:33 fgsch Exp $ */
/*
* Command line editing - common code
@@ -1058,7 +1058,7 @@ x_escape(s, len, putbuf_func)
int rval=0;
for (add = 0, wlen = len; wlen - add > 0; add++) {
- if (strchr("\\$(){}*&;#|<>\"'", s[add]) || strchr(ifs, s[add])) {
+ if (strchr("\\$(){}*&;#|<>\"'`", s[add]) || strchr(ifs, s[add])) {
if (putbuf_func(s, add) != 0) {
rval = -1;
break;