Skip to content

feature: echo -n #559

@nfischer

Description

@nfischer

Add support for the -n option for the echo command. This removes the default trailing newline.

Ex.

$ echo foo bar # notice the extra space after "foo bar"
foo bar

$ echo -n foo bar # notice no extra space after "foo bar"
foo bar
$

This can be implemented using process.stdout.write() fairly easily, just remember to concatenate all arguments into a single string to pass to process.stdout.write()

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions