Nushell: Parse Error when command argument contains equal sign

Created on 27 Aug 2019  路  4Comments  路  Source: nushell/nushell

I'm trying to pass an argument to terraform and the argument syntax uses = which appears to trip up nu.

```
error: Parse Error

  • shell:1:23
    1 | terraform init -backend=false
    | ^^^^^^
    ```
bug external-commands needs-design

Most helpful comment

I'm starting to suspect that we need to parse external commands differently than internal commands.

We already have a hard requirement that commands are separated by |, so maybe we need a really simple tokenization step first that pulls apart the commands and then parse external commands with something like shellwords?

All 4 comments

I'm starting to suspect that we need to parse external commands differently than internal commands.

We already have a hard requirement that commands are separated by |, so maybe we need a really simple tokenization step first that pulls apart the commands and then parse external commands with something like shellwords?

I would also assume I could use $it in the external command argument.

Same with make test TESTS=my_test

Recently @wycats landed some changes to external command support in the parser. It seems this is now fixed.

I'll close the issue, but please re-open if the issue is still happening with the latest code in master.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ne-on picture ne-on  路  5Comments

coolshaurya picture coolshaurya  路  4Comments

KasMA1990 picture KasMA1990  路  4Comments

jonathandturner picture jonathandturner  路  5Comments

jonathandturner picture jonathandturner  路  3Comments