diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2003-05-05 22:02:34 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2003-05-05 22:02:34 +0000 |
commit | abca225368d79d4a51edd05004daf0eb9cecffa4 (patch) | |
tree | 6f8c11788782f26abbfe3215948ddfb6d513def5 | |
parent | 3683e5a4d99d25a2992c45fd5b687332f758740b (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.
-rw-r--r-- | bin/ksh/edit.c | 4 |
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; |