mirror of
https://github.com/pygos/init.git
synced 2024-11-24 20:10:42 +01:00
Fix parameter substitution escape of '%'
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
ef51a8e06f
commit
24e98f1e5b
1 changed files with 3 additions and 0 deletions
|
@ -125,6 +125,9 @@ static void substitute(rdline_t *t, char *dst, char *src)
|
|||
src += 2;
|
||||
while (*dst != '\0')
|
||||
++dst;
|
||||
} else if (src[0] == '%' && src[1] == '%') {
|
||||
*(dst++) = '%';
|
||||
src += 2;
|
||||
} else {
|
||||
if (*src == '"')
|
||||
string = !string;
|
||||
|
|
Loading…
Reference in a new issue