Skip to content

After upgrading to 7.1 No quote function is defined: https://ï.at/no-quote-func #524

@geoffreysamper

Description

@geoffreysamper

Expected Behavior

when running a command below expect that the command it echo the hostname.

await $`echo ${process.env.HOSTNAME}`

Actual Behavior

Error: No quote function is defined: https://ï.at/no-quote-func
    at Proxy.quote (file:///usr/local/lib/node_modules/zx/build/core.js:38:15)
    at Proxy.set (file:///usr/local/lib/node_modules/zx/build/core.js:74:19)
    at file:///entrypoint.mjs:1:8
    at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
    at async importPath (file:///usr/local/lib/node_modules/zx/build/cli.js:164:5)
    at async main (file:///usr/local/lib/node_modules/zx/build/cli.js:95:5)

If i go to the prev version of zx 7.0.8 everything works

Steps to Reproduce the Problem

Specifications

  • Version: zx 7.1.0
  • Platform: alpine

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