| 278 | } |
| 279 | |
| 280 | static void add_input(char **cmd, const char *input, |
| 281 | int i, int argc) |
| 282 | { |
| 283 | /* Numbers, bools, objects and arrays are left unquoted, |
| 284 | * and quoted things left alone. */ |
| 285 | if (is_literal(input)) |
| 286 | tal_append_fmt(cmd, "%s", input); |
| 287 | else |
| 288 | tal_append_fmt(cmd, "\"%s\"", json_escape(*cmd, input)->s); |
| 289 | if (i != argc - 1) |
| 290 | tal_append_fmt(cmd, ", "); |
| 291 | } |
| 292 | |
| 293 | static void |
| 294 | try_exec_man (const char *page, char *relative_to) { |
no test coverage detected