mirror of
https://github.com/u-boot/u-boot.git
synced 2024-12-13 23:03:27 +08:00
4c73630686
In gsub, when the destination string is empty, the string 't' is provided and the regular expression doesn't match, then the final result is an empty string. Example: => echo ${foo} => setenv foo => setexpr foo gsub e a bar => echo ${foo} => The variable ${foo} should contain "bar" and the lack of match shouldn't be considered an error. This patch fixes the erroneous behavior by removing the return statement and breaking out of the loop in case of lack of match. Also add a test for the no match case. Signed-off-by: Massimiliano Minella <massimiliano.minella@se.com> |
||
---|---|---|
.. | ||
addrmap.c | ||
armffa.c | ||
bdinfo.c | ||
cmd_ut_cmd.c | ||
exit.c | ||
fdt.c | ||
font.c | ||
history.c | ||
loadm.c | ||
Makefile | ||
mbr.c | ||
mem_copy.c | ||
mem_search.c | ||
mem.c | ||
pci_mps.c | ||
pinmux.c | ||
pwm.c | ||
rw.c | ||
seama.c | ||
setexpr.c | ||
temperature.c | ||
test_echo.c | ||
test_pause.c | ||
wget.c |