hush: fix SEGV in % expansion

function                                             old     new   delta
expand_variables                                    2203    2217     +14
This commit is contained in:
Denis Vlasenko
2009-04-26 11:25:19 +00:00
parent 80e57eb7d5
commit 5b7589eb27
6 changed files with 31 additions and 31 deletions

View File

@@ -63,9 +63,9 @@ hush: error in arithmetic
40 40
hush: error in arithmetic
hush: divide by 0
hush: can't exec 'let': No such file or directory
hush: can't execute 'let': No such file or directory
hush: error in arithmetic
hush: can't exec 'let': No such file or directory
hush: can't execute 'let': No such file or directory
abc
def
ghi
@@ -135,4 +135,4 @@ hush: error in arithmetic
42
42
42
hush: can't exec 'a[b[c]d]=e': No such file or directory
hush: can't execute 'a[b[c]d]=e': No such file or directory

View File

@@ -32,4 +32,5 @@ ababcdc
ababcdcd
Empty:
ababcdcd}_tail
ababcdcd
end

View File

@@ -43,5 +43,6 @@ echo ${var%*}
echo Empty:${var%%*}
echo ${var#}}_tail
# UNFIXED BUG: echo ${var#\}}_tail
echo ${var%\\*}
echo end