Reilly Wood
49ab559992
Trim quotes when shelling out to cmd.exe ( #7740 )
...
Closes #6337 and #5366 . Prior to this PR, when "shelling out" to cmd.exe
on Windows we were not trimming quotes correctly:
```bash
〉^echo "foo"
\"foo\"
```
After this change, we do:
```bash
〉^echo "foo"
foo
```
### Breaking Change
I ended up removing `dir` from the list of supported cmd.exe internal
commands as part of this PR.
For this PR, I extracted the argument-cleaning-and-expanding code from
`spawn_simple_command()` for reuse in `spawn_cmd_command()`. This means
that we now expand globs, which broke some tests for the `dir` cmd.exe
internal command.
I probably could have kept the tests working, but... tbh, I don't think
it's worth it. I don't want to make the `cmd.exe` functionality any more
complicated than it already is, and calling `dir` from Nu is always
going to be weird+hacky compared to `ls`.
2023-01-13 11:00:30 -08:00
..
2022-12-09 11:20:58 -05:00
2022-12-23 01:48:53 -05:00
2022-06-26 00:35:23 +03:00
2023-01-04 23:50:18 +01:00
2022-11-23 16:55:13 +13:00
2022-08-11 11:54:54 -05:00
2022-08-10 08:43:56 -05:00
2022-08-18 11:58:51 -05:00
2022-11-22 16:58:11 -08:00
2022-02-16 07:38:02 -05:00
last, skip, drop, take until, take while, skip until, skip while, where, reverse, shuffle, append, prepend and sort-by raise error when given non-lists ( #7623 )
2022-12-31 13:35:12 +02:00
2023-01-04 23:50:18 +01:00
last, skip, drop, take until, take while, skip until, skip while, where, reverse, shuffle, append, prepend and sort-by raise error when given non-lists ( #7623 )
2022-12-31 13:35:12 +02:00
2022-12-23 01:48:53 -05:00
2022-12-30 17:44:37 +02:00
2022-12-10 19:24:06 +02:00
2022-12-10 19:24:06 +02:00
2023-01-02 17:09:55 -08:00
2022-11-25 09:39:16 +13:00
2022-12-31 13:27:09 +02:00
2022-11-05 07:38:39 +13:00
2022-02-07 14:54:06 -05:00
2022-11-25 09:39:16 +13:00
2022-08-12 21:13:50 -05:00
2022-12-31 13:18:53 +02:00
2023-01-02 14:45:43 -08:00
2022-11-24 16:58:15 +13:00
last, skip, drop, take until, take while, skip until, skip while, where, reverse, shuffle, append, prepend and sort-by raise error when given non-lists ( #7623 )
2022-12-31 13:35:12 +02:00
2022-11-21 17:04:36 +01:00
2022-02-17 06:40:24 -05:00
2022-11-01 11:36:54 -07:00
2022-02-07 14:54:06 -05:00
2022-07-12 06:03:50 -05:00
2022-02-16 07:38:02 -05:00
2022-12-22 00:33:26 +02:00
2022-08-02 10:26:16 -05:00
2022-02-09 05:58:54 -05:00
2023-01-03 21:08:05 -08:00
2022-09-11 11:48:27 +03:00
2022-12-14 16:20:18 +01:00
2022-12-19 13:10:02 +01:00
2022-08-06 10:11:03 -05:00
2023-01-02 14:45:43 -08:00
2022-10-15 18:00:38 +02:00
2022-02-16 12:24:45 -06:00
2022-11-09 16:43:24 -08:00
2022-12-30 17:44:37 +02:00
2022-05-18 20:47:26 -05:00
2022-11-21 14:35:11 +01:00
2022-11-10 22:33:15 +01:00
2022-07-04 06:31:50 +12:00
2023-01-03 21:08:05 -08:00
2022-02-07 14:54:06 -05:00
2022-11-11 19:51:08 +13:00
2022-12-10 19:24:06 +02:00
2022-12-14 16:20:18 +01:00
2022-12-13 06:45:33 -06:00
2022-11-23 17:01:27 +13:00
2022-12-13 11:56:44 -05:00
2022-12-22 16:38:07 -08:00
2022-12-06 19:51:55 +02:00
2022-08-07 13:30:40 -05:00
2022-11-24 16:58:15 +13:00
2023-01-02 14:45:43 -08:00
2022-08-07 13:30:40 -05:00
2022-08-04 14:51:02 -05:00
2023-01-02 17:09:55 -08:00
2022-07-02 09:54:49 -05:00
2022-02-09 05:58:54 -05:00
2023-01-13 11:00:30 -08:00
2023-01-04 23:50:18 +01:00
2022-11-20 07:22:42 -06:00
2022-12-23 01:48:53 -05:00
2022-11-25 09:39:16 +13:00
last, skip, drop, take until, take while, skip until, skip while, where, reverse, shuffle, append, prepend and sort-by raise error when given non-lists ( #7623 )
2022-12-31 13:35:12 +02:00
2022-08-04 06:59:20 -05:00
2022-12-23 01:48:53 -05:00
2022-09-11 11:48:27 +03:00
2023-01-13 11:00:30 -08:00
2023-01-03 14:22:28 +01:00
2023-01-02 14:45:43 -08:00
2022-02-07 14:54:06 -05:00
2022-11-09 17:06:47 -08:00
2023-01-03 21:08:05 -08:00
2022-08-08 06:31:24 -05:00
last, skip, drop, take until, take while, skip until, skip while, where, reverse, shuffle, append, prepend and sort-by raise error when given non-lists ( #7623 )
2022-12-31 13:35:12 +02:00
2022-12-01 07:11:30 -06:00
2022-12-22 00:21:03 +02:00
2022-02-07 14:54:06 -05:00
2022-02-19 19:26:47 -05:00
2022-02-07 14:54:06 -05:00
2022-12-15 09:55:15 -08:00
2022-12-22 16:38:07 -08:00
2022-11-27 07:19:02 +13:00
2022-06-22 19:19:06 -05:00
2023-01-05 21:41:51 +01:00
2022-12-02 11:36:01 +01:00
2022-11-23 15:46:20 -08:00
2022-12-08 07:31:57 +13:00
2022-12-08 07:31:57 +13:00
2022-12-30 17:44:37 +02:00
last, skip, drop, take until, take while, skip until, skip while, where, reverse, shuffle, append, prepend and sort-by raise error when given non-lists ( #7623 )
2022-12-31 13:35:12 +02:00
2022-03-24 16:42:41 +13:00
2022-12-14 16:20:18 +01:00
2022-12-22 12:30:10 -08:00
2022-02-09 05:58:54 -05:00
2022-12-08 12:02:11 +13:00