second attempt at getting '$FOO/b*r/baz' tab-completed right,

plus the beginning of the tilde fix… do not use, this is fucking
impossible to get right, but I’d like an archival commit
This commit is contained in:
tg
2012-08-24 20:57:46 +00:00
parent 2ed6e8998c
commit 42ac0dc08e
3 changed files with 51 additions and 28 deletions

5
sh.h
View File

@@ -157,7 +157,7 @@
#endif
#ifdef EXTERN
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.581 2012/08/24 20:05:13 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.582 2012/08/24 20:57:46 tg Exp $");
#endif
#define MKSH_VERSION "R40 2012/08/17"
@@ -1343,7 +1343,7 @@ struct ioword {
#define DOTEMP BIT(8) /* dito: in word part of ${..[%#=?]..} */
#define DOVACHECK BIT(9) /* var assign check (for typeset, set, etc) */
#define DOMARKDIRS BIT(10) /* force markdirs behaviour */
#define DOKEEPQUOTE BIT(11) /* internal use by globbing code */
#define DOKEEPQCHAR BIT(11) /* internal use by globbing code */
/*
* The arguments of [[ .. ]] expressions are kept in t->args[] and flags
@@ -1635,6 +1635,7 @@ char *evalonestr(const char *cp, int);
char *debunk(char *, const char *, size_t);
void expand(const char *, XPtrV *, int);
int glob_str(char *, XPtrV *, bool);
char *tilde(char *);
/* exec.c */
int execute(struct op * volatile, volatile int, volatile int * volatile);
int shcomexec(const char **);