ash: remove TODO which seems to actually work now.

no code changes
This commit is contained in:
Denis Vlasenko 2008-12-03 11:59:12 +00:00
parent 6ebb2f56d5
commit 81c3a1d0b2

View File

@ -75,7 +75,7 @@
#endif #endif
#if defined(__uClinux__) #if defined(__uClinux__)
#error "Do not even bother, ash will not run on uClinux" #error "Do not even bother, ash will not run on NOMMU machine"
#endif #endif
@ -90,7 +90,7 @@
#define xbarrier() do { __asm__ __volatile__ ("": : :"memory"); } while (0) #define xbarrier() do { __asm__ __volatile__ ("": : :"memory"); } while (0)
/* C99 say: "char" declaration may be signed or unsigned default */ /* C99 says: "char" declaration may be signed or unsigned by default */
#define signed_char2int(sc) ((int)((signed char)sc)) #define signed_char2int(sc) ((int)((signed char)sc))
@ -4679,7 +4679,6 @@ waitforjob(struct job *jp)
* $ bash -c './sleep5intoff; echo hi' * $ bash -c './sleep5intoff; echo hi'
* ^C^C^C^C <--- pressing ^C once a second * ^C^C^C^C <--- pressing ^C once a second
* $ _ * $ _
* TODO: we do not execute "echo hi" as bash does:
* $ bash -c './sleep5intoff; echo hi' * $ bash -c './sleep5intoff; echo hi'
* ^\^\^\^\hi <--- pressing ^\ (SIGQUIT) * ^\^\^\^\hi <--- pressing ^\ (SIGQUIT)
* $ _ * $ _
@ -5556,9 +5555,8 @@ evalbackcmd(union node *n, struct backcmd *result)
result->buf = NULL; result->buf = NULL;
result->nleft = 0; result->nleft = 0;
result->jp = NULL; result->jp = NULL;
if (n == NULL) { if (n == NULL)
goto out; goto out;
}
saveherefd = herefd; saveherefd = herefd;
herefd = -1; herefd = -1;
@ -5665,7 +5663,7 @@ expari(int quotes)
int flag; int flag;
int len; int len;
/* ifsfree(); */ /* ifsfree(); */
/* /*
* This routine is slightly over-complicated for * This routine is slightly over-complicated for
@ -5983,8 +5981,9 @@ varunset(const char *end, const char *var, const char *umsg, int varflags)
if (*end == CTLENDVAR) { if (*end == CTLENDVAR) {
if (varflags & VSNUL) if (varflags & VSNUL)
tail = " or null"; tail = " or null";
} else } else {
msg = umsg; msg = umsg;
}
} }
ash_msg_and_raise_error("%.*s: %s%s", end - var - 1, var, msg, tail); ash_msg_and_raise_error("%.*s: %s%s", end - var - 1, var, msg, tail);
} }
@ -6178,8 +6177,9 @@ subevalvar(char *p, char *str, int strloc, int subtype,
idx++; idx++;
rmesc++; rmesc++;
} }
} else } else {
idx = loc; idx = loc;
}
for (loc = repl; *loc; loc++) { for (loc = repl; *loc; loc++) {
restart_detect = stackblock(); restart_detect = stackblock();