Skip to content

bugfix: echo was treating anything preceded by - as an option flag

Michael Aaron Murphy requested to merge drosseau:master into master

Created by: drosseau

echo was treating everything preceded by - as an options flag so something like echo -1 wouldn't output anything.

This change would make it act more like the usual echo, which would even take something like echo -n1 and output -n1 while echo -n -1 would recognize the -n flag and output -1 without a newline.

Merge request reports