Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/ksh From OpenBSD:
details: https://anonhg.NetBSD.org/src/rev/6124984b52b0
branches: trunk
changeset: 550947:6124984b52b0
user: wiz <wiz%NetBSD.org@localhost>
date: Tue Aug 26 07:28:39 2003 +0000
description:
>From OpenBSD:
revision 1.18
date: 2003/08/22 18:17:10; author: fgsch; state: Exp; lines: +2 -2
in word location, fix forward scanning so it correctly account for any
escaped char and not only spaces.
for "foo (bar.a)" and "foo (bar a)", cd foo\ \(bar.<tab> will correctly
expand to foo\ \(bar.a\).
otto@ and pval@ ok.
diffstat:
bin/ksh/edit.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 996223240c05 -r 6124984b52b0 bin/ksh/edit.c
--- a/bin/ksh/edit.c Tue Aug 26 07:27:42 2003 +0000
+++ b/bin/ksh/edit.c Tue Aug 26 07:28:39 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: edit.c,v 1.11 2003/06/23 11:38:54 agc Exp $ */
+/* $NetBSD: edit.c,v 1.12 2003/08/26 07:28:39 wiz Exp $ */
/*
* Command line editing - common code
@@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: edit.c,v 1.11 2003/06/23 11:38:54 agc Exp $");
+__RCSID("$NetBSD: edit.c,v 1.12 2003/08/26 07:28:39 wiz Exp $");
#endif
@@ -777,7 +777,7 @@
;
/* Go forwards to end of word */
for (end = start; end < buflen && IS_WORDC(buf[end]); end++) {
- if (buf[end] == '\\' && (end+1) < buflen && buf[end+1] == ' ')
+ if (buf[end] == '\\' && (end+1) < buflen)
end++;
}
Home |
Main Index |
Thread Index |
Old Index