diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-03-09 01:08:06 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-03-09 01:08:06 +0000 |
commit | 3dbf1e877af409c17092ce5d6cdcb686dad50b65 (patch) | |
tree | 2e6783354bdf1d85dff95e79e2ac065890de26ec /shell | |
parent | afffbfe8c47ddec718952128dd517898c8bf36cd (diff) | |
download | busybox-w32-3dbf1e877af409c17092ce5d6cdcb686dad50b65.tar.gz busybox-w32-3dbf1e877af409c17092ce5d6cdcb686dad50b65.tar.bz2 busybox-w32-3dbf1e877af409c17092ce5d6cdcb686dad50b65.zip |
A '.' is a legal seperator.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/lash.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |