Skip to content

";" is slipping from quotes such as a git commit message #4140

Closed

Description

@danimesq

Describe the bug

When using ; inside quotes, like in a git commit massage:
Screenshot from 2021-11-20 21-26-00

How to reproduce

Type, for example:
git commit -m "update 1; update 2"

The git commit message will be only "update 1".

Expected behavior

Work normally with quotes like in Bash.

Screenshots

No response

Configuration

No response

Additional context

No response

Activity

  1. danimesq commented on Nov 22, 2021

    @danimesq
    ContributorAuthor

    Not only ;, but also a single & (for example, curl json apis are failing because of missing parameters)

  2. BraulioVM commented on Nov 26, 2021

    @BraulioVM
    Contributor

    The issue can be reproduced a bit more easily using ^echo:

    $ ^echo "aaa;bbb"
    aaa
    sh: 1: bbb: not found
    

    I don't know much about nushell so I'm not sure if this is the expected behaviour. I suspect it isn't expected. I'm looking into it

  3. BraulioVM commented on Nov 26, 2021

    @BraulioVM
    Contributor

    Ok, found the bug and fixed it. I will be submitting a PR shortly

  4. added a commit that references this issue on Nov 26, 2021
    09082ac
  5. added a commit that references this issue on Nov 29, 2021
    1794ad5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions