aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-03-09 01:08:06 +0000
committerEric Andersen <andersen@codepoet.org>2001-03-09 01:08:06 +0000
commit3dbf1e877af409c17092ce5d6cdcb686dad50b65 (patch)
tree2e6783354bdf1d85dff95e79e2ac065890de26ec
parentafffbfe8c47ddec718952128dd517898c8bf36cd (diff)
downloadbusybox-3dbf1e877af409c17092ce5d6cdcb686dad50b65.tar.gz
A '.' is a legal seperator.
-rw-r--r--lash.c4
-rw-r--r--sh.c4
-rw-r--r--shell/lash.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/lash.c b/lash.c
index 6a692d745..ae5532e54 100644
--- a/lash.c
+++ b/lash.c
@@ -1064,7 +1064,7 @@ static int expand_arguments(char *command)
if (var) {
int subst_len = strlen(var);
char *next_dst;
- if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?")) == NULL) {
+ if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?.")) == NULL) {
next_dst = dst;
}
src = (char*)xrealloc(src, strlen(src) - strlen(next_dst)+strlen(var)+1);
@@ -1078,7 +1078,7 @@ static int expand_arguments(char *command)
} else {
/* Seems we got an un-expandable variable. So delete it. */
char *next_dst;
- if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?")) != NULL) {
+ if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?.")) != NULL) {
/* Move stuff to the end of the string to accommodate filling
* the created gap with the new stuff */
memmove(dst, next_dst, next_dst-dst);
diff --git a/sh.c b/sh.c
index 6a692d745..ae5532e54 100644
--- a/sh.c
+++ b/sh.c
@@ -1064,7 +1064,7 @@ static int expand_arguments(char *command)
if (var) {
int subst_len = strlen(var);
char *next_dst;
- if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?")) == NULL) {
+ if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?.")) == NULL) {
next_dst = dst;
}
src = (char*)xrealloc(src, strlen(src) - strlen(next_dst)+strlen(var)+1);
@@ -1078,7 +1078,7 @@ static int expand_arguments(char *command)
} else {
/* Seems we got an un-expandable variable. So delete it. */
char *next_dst;
- if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?")) != NULL) {
+ if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?.")) != NULL) {
/* Move stuff to the end of the string to accommodate filling
* the created gap with the new stuff */
memmove(dst, next_dst, next_dst-dst);
diff --git a/shell/lash.c b/shell/lash.c
index 6a692d745..ae5532e54 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -1064,7 +1064,7 @@ static int expand_arguments(char *command)
if (var) {
int subst_len = strlen(var);
char *next_dst;
- if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?")) == NULL) {
+ if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?.")) == NULL) {
next_dst = dst;
}
src = (char*)xrealloc(src, strlen(src) - strlen(next_dst)+strlen(var)+1);
@@ -1078,7 +1078,7 @@ static int expand_arguments(char *command)
} else {
/* Seems we got an un-expandable variable. So delete it. */
char *next_dst;
- if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?")) != NULL) {
+ if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?.")) != NULL) {
/* Move stuff to the end of the string to accommodate filling
* the created gap with the new stuff */
memmove(dst, next_dst, next_dst-dst);