Am 07.04.2017 um 08:30 schrieb Jeff King:
I also don't know how some of those loops would cope with
a submodule name that needed quoting).

"git submodule add" worked fine with most of the following names:

    "sub"
    # potentially confusing the shell
    "sub with blanks",
    "sub with\nnewline",
    "sub with'single quote",
    "sub with\"double quote",
    "sub with\\backslash",
    "sub with\bbackspace",
    "sub with\thorizontal tab",
    # potentially confusing git's configuration format
    "sub with #",
    "sub with ="

(That's Python 3 literals in case somebody is wondering. I'm using Python to unit test a shell script, just so I can catch this sort of stuff...)

Reply via email to