2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-01-19 16:44:46 +00:00
nushell/tests
Wind 5d163c1bcc
run_external: remove inner quotes once nushell gets = sign ()
# Description
Fixes: 

nushell should remove argument values' inner quote once it gets `=`.
Whatever it's a flag or not, and it also replace from `\"` to `"` before
passing it to external commands.

# User-Facing Changes
Given the shell script:
```shell
# test.sh
echo $@
```
## Before
```
>  sh test.sh -ldflags="-s -w" github.com
-ldflags="-s -w" github.com
> sh test.sh exp='-s -w' github.com
exp='-s -w' github.com
```
## After
```
>  sh test.sh -ldflags="-s -w" github.com
-ldflags=-s -w github.com
> sh test.sh exp='-s -w' github.com
exp=-s -w github.com
```

# Tests + Formatting
Added some tests
2024-06-06 11:03:34 +08:00
..
assets/nu_json Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
const_ add raw-string literal support () 2024-05-02 09:36:37 -04:00
eval Exit early when encountering parsing errors () 2023-09-05 14:36:37 +02:00
fixtures add some completion tests () 2024-05-23 10:47:06 +08:00
hooks Fix hooks on 0.92.0 () 2024-04-04 09:25:54 +02:00
modules Avoid taking unnecessary ownership of intermediates () 2024-05-04 00:53:15 +00:00
overlays Avoid taking unnecessary ownership of intermediates () 2024-05-04 00:53:15 +00:00
parsing Avoid taking unnecessary ownership of intermediates () 2024-05-04 00:53:15 +00:00
path Avoid taking unnecessary ownership of intermediates () 2024-05-04 00:53:15 +00:00
plugin_persistence Add a bit more delay before ps calls in plugin persistence tests () 2024-04-26 06:24:57 -05:00
plugins Replace ExternalStream with new ByteStream type () 2024-05-16 07:11:18 -07:00
repl Rewrite run_external.rs () 2024-05-23 02:05:27 +00:00
scope Avoid taking unnecessary ownership of intermediates () 2024-05-04 00:53:15 +00:00
shell run_external: remove inner quotes once nushell gets = sign () 2024-06-06 11:03:34 +08:00
main.rs Merged tests to produce a single binary () 2024-05-13 13:37:53 +00:00