Skip to content

Empty string argument should be quoted #14

@njam

Description

@njam

Currently an empty string argument becomes an empty string, and is thus ignored by the shell:

$ node -e "let esc = require('shell-escape'); console.log('|' + esc(['']) + '|')"
||

Instead an empty string should become as '' I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions