A '.' is a legal seperator.
authorEric Andersen <andersen@codepoet.org>
Fri, 9 Mar 2001 01:08:06 +0000 (01:08 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 9 Mar 2001 01:08:06 +0000 (01:08 -0000)
lash.c
sh.c
shell/lash.c

diff --git a/lash.c b/lash.c
index 6a692d7453b8f67129f45bfc19fb6908dc1fad0f..ae5532e543be274be1644eb0448ee0db5a661ed4 100644 (file)
--- 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 6a692d7453b8f67129f45bfc19fb6908dc1fad0f..ae5532e543be274be1644eb0448ee0db5a661ed4 100644 (file)
--- 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); 
index 6a692d7453b8f67129f45bfc19fb6908dc1fad0f..ae5532e543be274be1644eb0448ee0db5a661ed4 100644 (file)
@@ -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);