Skip to content

shell option for execFileSync , the parameters cannot be obtained in the script #29466

Closed
@rambo-panda

Description

@rambo-panda

I'm not sure if it's a bug or whether it's the design intent.

  • Version: v10.15.2
  • Platform: Darwin bogon 18.7.0 Darwin Kernel Version 18.7.0 x86_64
  • Subsystem:

bin/test.sh

#!/bin/bash

echo $1
echo $2

image

here is my debug info:

return child_process.spawnSync(opts);

image

the final exec script

/bin/sh -c ./bin/test.sh arg0 arg1

here is my trying
image
the final exec script

/bin/sh -c "./bin/test.sh arg0 arg1"

Metadata

Metadata

Assignees

No one assigned

    Labels

    child_processIssues and PRs related to the child_process subsystem.invalidIssues and PRs that are invalid.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions