Hi, the following patch correct this:
http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yes&numbers=6006
but I don't know if it breaks someone else's use case (script)?
make check is ok.
Index: edit.c
===================================================================
RCS file: /cvs/src/bin/ksh/edit.c,v
retrieving revision 1.34
diff -u -p -r1.34 edit.c
--- edit.c 20 May 2010 01:13:07 -0000 1.34
+++ edit.c 25 May 2010 11:06:57 -0000
@@ -348,7 +348,7 @@ x_file_glob(int flags, const char *str,
{
char *toglob;
char **words;
- int nwords, i, idx, escaping;
+ int nwords;
XPtrV w;
struct source *s, *sold;
@@ -356,20 +356,6 @@ x_file_glob(int flags, const char *str,
return 0;
toglob = add_glob(str, slen);
-
- /* remove all escaping backward slashes */
- escaping = 0;
- for (i = 0, idx = 0; toglob[i]; i++) {
- if (toglob[i] == '\\' && !escaping) {
- escaping = 1;
- continue;
- }
-
- toglob[idx] = toglob[i];
- idx++;
- if (escaping) escaping = 0;
- }
- toglob[idx] = '\0';
/*
* Convert "foo*" (toglob) to an array of strings (words)
--
Manuel Giraud