summaryrefslogtreecommitdiff
path: root/bin/ksh/edit.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-02-16 17:18:09 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-02-16 17:18:09 +0000
commit291373da8de21480f5c4648561d3d88f35b97a63 (patch)
tree30d9c862ffe2b9b89617ca50805830cfa2fdde87 /bin/ksh/edit.c
parent0b6ac845aa5e1091ceea2bd4d11ab2912383fd1b (diff)
Add '#' to the list of escaped characters during vi/emacs filename completion.
From Matt Bing.
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 98722a7f91a..6dfc5ba7ec7 100644
--- a/bin/ksh/edit.c
+++ b/bin/ksh/edit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: edit.c,v 1.13 2001/02/19 19:32:13 camield Exp $ */
+/* $OpenBSD: edit.c,v 1.14 2002/02/16 17:18:08 millert 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;