Skip to content

Echo doesn't return value ending in a trailing newline #476

@gvn

Description

@gvn

Node version:

v6.2.0

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

0.7.0

Operating system:

OSX 10.11.5

Description of the bug:

Using toEnd doesn't prepend a newline when chained to echo.

Example ShellJS command to reproduce the error:

shell.echo(`A`).toEnd(`test.txt`);
shell.echo(`B`).toEnd(`test.txt`);

test.txt becomes: AB

echo A >> test.txt
echo B >> test.txt

test.txt becomes:

A
B

Metadata

Metadata

Assignees

Labels

breakingBreaking changefixBug/defect, or a fix for such a problemhelp wanted

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions