[U-Boot] hush variable expansion & quoting

Henrik Nordström henrik at henriknordstrom.net
Tue May 14 19:06:27 CEST 2013


Quoting is broken (ignored/lost) when there is variable expansions

    # test "a b" = c; echo $?
    1
    # v="a b"
    # test "$v" = c; echo $?
    0
    # echo "a    b"
    a    b
    # v="a    b"
    # echo "$v"
    a b

Regards
Henrik



More information about the U-Boot mailing list