Skip to content

[BUG] Script escaping is brokenΒ #9

@jiw-mh

Description

@jiw-mh

πŸ› Bug Description

Having a script with an escape sequence isn`t correctly executed.

πŸ“‹ Steps to Reproduce

  1. Created a script with an escaped sequence
  2. Run that script

βœ… Expected Behavior

Executed as expected

❌ Actual Behavior

Error occurred pointing out script issues.

composer.json (if relevant)

{
  "scripts": {
    "copy-env": "@php -r \"file_exists('.env') || copy('.env.example', '.env')\""
  }
}

Error Output

PHP Parse error:  syntax error, unexpected end of file in Command line code on line 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions