Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@gvn

Description

@gvn
Issue body actions

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 changeBreaking changefixBug/defect, or a fix for such a problemBug/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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.