1
0
mirror of https://github.com/nushell/nushell.git synced 2025-04-02 12:19:48 +02:00
nushell/crates/nu-command
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
..
src run_external: remove inner quotes once nushell gets = sign () 2024-06-06 11:03:34 +08:00
tests Try to preserve the ordering of elements in from toml () 2024-06-05 08:00:39 +08:00
Cargo.toml Try to preserve the ordering of elements in from toml () 2024-06-05 08:00:39 +08:00
LICENSE Fix rest of license year ranges () 2023-04-04 09:03:29 +12:00