aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 771fc8bf9..4ca4c6c56 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -7073,6 +7073,11 @@ subevalvar(char *start, char *str, int strloc,
7073 repl = NULL; 7073 repl = NULL;
7074 break; 7074 break;
7075 } 7075 }
7076 /* Skip over quoted 'str'. Example: ${var/'/'} - second / is not a separator */
7077 if ((unsigned char)*repl == CTLQUOTEMARK) {
7078 while ((unsigned char)*++repl != CTLQUOTEMARK)
7079 continue;
7080 }
7076 if (*repl == '/') { 7081 if (*repl == '/') {
7077 *repl = '\0'; 7082 *repl = '\0';
7078 break; 7083 break;