diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-03-09 01:08:06 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-03-09 01:08:06 +0000 |
commit | 788bee548b5d501bbd4f59d9adb75778cdc9f28f (patch) | |
tree | 2e6783354bdf1d85dff95e79e2ac065890de26ec /sh.c | |
parent | 71ae45f48a484426097a134801c9976fd36f5110 (diff) | |
download | busybox-w32-788bee548b5d501bbd4f59d9adb75778cdc9f28f.tar.gz busybox-w32-788bee548b5d501bbd4f59d9adb75778cdc9f28f.tar.bz2 busybox-w32-788bee548b5d501bbd4f59d9adb75778cdc9f28f.zip |
A '.' is a legal seperator.
git-svn-id: svn://busybox.net/trunk/busybox@2018 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'sh.c')
-rw-r--r-- | sh.c | 4 |
1 files changed, 2 insertions, 2 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); |