Skip to content
  • Wim Taymans's avatar
    conf: handle array of arguments in context.exec · 7f4a0ba8
    Wim Taymans authored
    We handeled "arg1 arg2 ... " before and used to split between spaces to
    get the arguments for execvp but that doesn't work so well when there
    are arguments with spaces.
    
    Instead use JSON parsing to get the array of arguments. This make it
    possible to use [ arg1 arg2 .. ] and quote each arg separately. You
    can still use the old method and even double escape:
    
    "\"arg1\" \"arg2 with spaces\"" or
     [ "arg1" "arg2 with spaces" ]
    7f4a0ba8