Files
Matt Godbolt 63c2ce7808 Reimplement shell splitting (#7202)
Takes the bones of shell-split and makes it handle lots of situations
without throwing exceptions, and using modern-ish typescript/javascript
stuff.

Adds lots more tests too.

Removes unneeded package dependencies.

Changes from before: escaping a pipe character `moo \\# hello` would
drop the `# hello` part (?) that is, I updated the test that did:
```ts
expect(splitArguments('hello \\#veryfancy etc')).toEqual(['hello', '\\']);
```
to be the more sane expectation of `['hello', '\\#veryfancy']`.

Everything else I could think of (unterminated strings, escapes etc) I
kept the same. And added tests for.

Hopefully addresses #7201 without breaking any reasonable use of the
code (though @partouf raises fair concerns about this.)
2024-12-09 04:20:38 -06:00
..
2023-11-27 10:33:03 -05:00
2024-10-25 12:19:04 +03:00
2021-10-05 01:45:05 +02:00
2019-08-21 01:26:16 +02:00
2021-09-13 20:22:27 +02:00
2024-10-27 15:28:38 +02:00
2024-03-08 22:25:09 -06:00
2024-10-26 17:42:22 +02:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2023-07-10 21:31:04 -05:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-10-25 12:19:04 +03:00
2024-03-08 22:25:09 -06:00
2024-10-26 17:42:22 +02:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-09-12 00:26:49 +02:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-10-27 15:28:38 +02:00
2024-03-08 22:25:09 -06:00
2024-10-26 17:42:22 +02:00
2024-03-08 22:25:09 -06:00
2024-10-26 17:42:22 +02:00
2024-03-08 22:25:09 -06:00