Skip to content

Equals sign seems unnecessarily escaped #1

@deivid-rodriguez

Description

@deivid-rodriguez

In rubygems, we sometimes print quite complicated commands when building extensions fail, so that the user can try to rerun things and reproduce the problem. I noticed that equal signs are escaped, making things a bit more overwhelming.

I think there might be a reason for it that I don't know of, or some shell where it's necessary, but I checked the equivalent python package, and it does not escape them, so maybe it can be changed.

➜  ~ python -c 'import shlex; print(shlex.join(["FOO=BAR", "baz"]))'
FOO=BAR baz
➜  ~ ruby -rshellwords -e 'puts Shellwords.join(["FOO=BAR", "bar"])'
FOO\=BAR baz

If the change is accepted, I can work on it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions