Skip to content

UnixShell commandline multiple nested quote escape parsing bug #2050

Description

@ccronix

Rez version after 2.112.0 can not correctly parsing commandline with multiple nested quote escape.

Environment

  • OS Ubuntu 20.04
  • Rez version 2.112.0 - latest
  • Rez python version 3.8

To Reproduce
execute a simple command line: rez-env -- eval "eval \"echo \\\"Hello World\\\"\""

Expected behavior
rez environment will launched and print out "Hello World"

Actual behavior
shell got these error:
/tmp/rez_context_kkcdbkat/rez-shell.sh: line 8: unexpected EOF while looking for matching `''
/tmp/rez_context_kkcdbkat/rez-shell.sh: line 10: syntax error: unexpected end of file

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugshellShell related issues

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions