Skip to content

Windows update octobor 2019 breaks execSync if destination folder is for a user with space in name #974

@AlfredssonErik

Description

@AlfredssonErik

Node version (or tell us if you're using electron or some other framework):

8.10.0

ShellJS version (the most recent version/Github branch you see the bug on):

0.5.3

Operating system:

Windows 10

Description of the bug:

Problem arises after a windows update in october 2019. Before the update when user had a space in username, the temp file created created a new folder with "%20" instead of the space in "C:\Users". After the update the command execSync is not able to run the command if the user has a space in username.

Example ShellJS command to reproduce the error:

"C:\Program Files\nodejs\node.exe" C:\Users\FirstName LastName\AppData\Local\Temp\shelljs_clsjdbfljsbdfldf456456

Metadata

Metadata

Assignees

No one assigned

    Labels

    WindowsexecIssues specific to the shell.exec() API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions