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()
Add support for the
-noption for theechocommand. This removes the default trailing newline.Ex.
This can be implemented using
process.stdout.write()fairly easily, just remember to concatenate all arguments into a single string to pass toprocess.stdout.write()