Skip to content

Windows doesn't like single quotes #9

@seangenabe

Description

@seangenabe

Windows doesn't like single quotes to be used as argument "wrappers", it will try to include them literally in the command-line argument.

Example:
write-file

var FS = require('fs')
var Path = require('path')

var file = process.argv[2]
FS.writeFileSync(Path.join(__dirname, file), 'foo')

When I call node write-file 'hello.txt', it creates literally the file 'hello.txt', with quotes.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions