Skip to content

How to increase ShellJS buffer size? #639

@DorEliyahu17

Description

@DorEliyahu17

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

v7.1.0

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

v0.7.4

Operating system:

Windows 10/Windows 7

Description of the bug:

I'm writing a script that execute the command shell.exec('ls -l -R [path to search in] | grep -v .lnk | tr -s " "', {silent: false}); and when I'm trying to execute this command on a path that has more than 21005244 chars in the output of the command, the execute of the command stopped and the script continue to running.
I'm assuming that the bug is that I need to increase the size of the ShellJS but I can't find how.
Can you please help me to find how to do so?
Thanks

Example ShellJS command to reproduce the error:

shell.exec('ls -l -R C:/Users/User/Desktop | grep -v .lnk | tr -s " "', {silent: false});

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