Add newline to output of echo#557
Add newline to output of echo#557freitagbr merged 2 commits intoshelljs:devfrom freitagbr:echo-newline
Conversation
|
@freitagbr Can you also add a test? |
|
@nfischer Sure. I am thinking however that the behavior of this should be changed. Currently, |
|
@freitagbr unix You raise a good point though, so I filed #557 |
|
Looks good. Let's wait until we ava-ify the tests for |
|
Ok. Is it worth adding support for |
|
You can do that in a new PR, it shouldn't necessarily be blocked by this. Either way, let's wait to get the |
|
@nfischer I rewrote the test for this branch. |
|
LGTM, make sure we land this on dev, not master. |
* Add newline to output of echo * Add test
* Add newline to output of echo * Add test
* Add newline to output of echo * Add test
* Add newline to output of echo (#557) * Add newline to output of echo * Add test * Throw an error if the options string does not start with '-' (#615) * Throw an error if the options string does not start with '-' * Add test * Change message grammar * Add -n option to echo * Fix null argument issue * Add -n tests * Add documentation * Add -en escaped character test * Add function to parse options for echo * Use parseOptions to parse echo options * Simplify control flow * parseOptions throws now * Allow null to be echoed * Prevent echo stderr on unrecognized option * Add test to check stderr of returned value * Use consistent variable name * Change test message, leave TODO about console output
* Add newline to output of echo * Add test
* Add newline to output of echo (#557) * Add newline to output of echo * Add test * Throw an error if the options string does not start with '-' (#615) * Throw an error if the options string does not start with '-' * Add test * Change message grammar * Add -n option to echo * Fix null argument issue * Add -n tests * Add documentation * Add -en escaped character test * Add function to parse options for echo * Use parseOptions to parse echo options * Simplify control flow * parseOptions throws now * Allow null to be echoed * Prevent echo stderr on unrecognized option * Add test to check stderr of returned value * Use consistent variable name * Change test message, leave TODO about console output
* Add newline to output of echo * Add test
* Add newline to output of echo (#557) * Add newline to output of echo * Add test * Throw an error if the options string does not start with '-' (#615) * Throw an error if the options string does not start with '-' * Add test * Change message grammar * Add -n option to echo * Fix null argument issue * Add -n tests * Add documentation * Add -en escaped character test * Add function to parse options for echo * Use parseOptions to parse echo options * Simplify control flow * parseOptions throws now * Allow null to be echoed * Prevent echo stderr on unrecognized option * Add test to check stderr of returned value * Use consistent variable name * Change test message, leave TODO about console output
Fixes #476