diff options
-rw-r--r-- | lash.c | 4 | ||||
-rw-r--r-- | sh.c | 4 | ||||
-rw-r--r-- | shell/lash.c | 4 |
3 files changed, 6 insertions, 6 deletions
@@ -1064,7 +1064,7 @@ static int expand_arguments(char *command) | |||
1064 | if (var) { | 1064 | if (var) { |
1065 | int subst_len = strlen(var); | 1065 | int subst_len = strlen(var); |
1066 | char *next_dst; | 1066 | char *next_dst; |
1067 | if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?")) == NULL) { | 1067 | if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?.")) == NULL) { |
1068 | next_dst = dst; | 1068 | next_dst = dst; |
1069 | } | 1069 | } |
1070 | src = (char*)xrealloc(src, strlen(src) - strlen(next_dst)+strlen(var)+1); | 1070 | src = (char*)xrealloc(src, strlen(src) - strlen(next_dst)+strlen(var)+1); |
@@ -1078,7 +1078,7 @@ static int expand_arguments(char *command) | |||
1078 | } else { | 1078 | } else { |
1079 | /* Seems we got an un-expandable variable. So delete it. */ | 1079 | /* Seems we got an un-expandable variable. So delete it. */ |
1080 | char *next_dst; | 1080 | char *next_dst; |
1081 | if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?")) != NULL) { | 1081 | if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?.")) != NULL) { |
1082 | /* Move stuff to the end of the string to accommodate filling | 1082 | /* Move stuff to the end of the string to accommodate filling |
1083 | * the created gap with the new stuff */ | 1083 | * the created gap with the new stuff */ |
1084 | memmove(dst, next_dst, next_dst-dst); | 1084 | memmove(dst, next_dst, next_dst-dst); |
@@ -1064,7 +1064,7 @@ static int expand_arguments(char *command) | |||
1064 | if (var) { | 1064 | if (var) { |
1065 | int subst_len = strlen(var); | 1065 | int subst_len = strlen(var); |
1066 | char *next_dst; | 1066 | char *next_dst; |
1067 | if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?")) == NULL) { | 1067 | if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?.")) == NULL) { |
1068 | next_dst = dst; | 1068 | next_dst = dst; |
1069 | } | 1069 | } |
1070 | src = (char*)xrealloc(src, strlen(src) - strlen(next_dst)+strlen(var)+1); | 1070 | src = (char*)xrealloc(src, strlen(src) - strlen(next_dst)+strlen(var)+1); |
@@ -1078,7 +1078,7 @@ static int expand_arguments(char *command) | |||
1078 | } else { | 1078 | } else { |
1079 | /* Seems we got an un-expandable variable. So delete it. */ | 1079 | /* Seems we got an un-expandable variable. So delete it. */ |
1080 | char *next_dst; | 1080 | char *next_dst; |
1081 | if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?")) != NULL) { | 1081 | if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?.")) != NULL) { |
1082 | /* Move stuff to the end of the string to accommodate filling | 1082 | /* Move stuff to the end of the string to accommodate filling |
1083 | * the created gap with the new stuff */ | 1083 | * the created gap with the new stuff */ |
1084 | memmove(dst, next_dst, next_dst-dst); | 1084 | 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) | |||
1064 | if (var) { | 1064 | if (var) { |
1065 | int subst_len = strlen(var); | 1065 | int subst_len = strlen(var); |
1066 | char *next_dst; | 1066 | char *next_dst; |
1067 | if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?")) == NULL) { | 1067 | if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?.")) == NULL) { |
1068 | next_dst = dst; | 1068 | next_dst = dst; |
1069 | } | 1069 | } |
1070 | src = (char*)xrealloc(src, strlen(src) - strlen(next_dst)+strlen(var)+1); | 1070 | src = (char*)xrealloc(src, strlen(src) - strlen(next_dst)+strlen(var)+1); |
@@ -1078,7 +1078,7 @@ static int expand_arguments(char *command) | |||
1078 | } else { | 1078 | } else { |
1079 | /* Seems we got an un-expandable variable. So delete it. */ | 1079 | /* Seems we got an un-expandable variable. So delete it. */ |
1080 | char *next_dst; | 1080 | char *next_dst; |
1081 | if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?")) != NULL) { | 1081 | if ((next_dst=strpbrk(dst+1, " \t~`!$^&*()=|\\{}[];\"'<>?.")) != NULL) { |
1082 | /* Move stuff to the end of the string to accommodate filling | 1082 | /* Move stuff to the end of the string to accommodate filling |
1083 | * the created gap with the new stuff */ | 1083 | * the created gap with the new stuff */ |
1084 | memmove(dst, next_dst, next_dst-dst); | 1084 | memmove(dst, next_dst, next_dst-dst); |