On 13.04.2016 16:36, Eliot Moss wrote: > I tried it myself > and found that cmd's echo adds a space after "stuff". If I do: > c:\Users\moss> echo stuff> file1 > (Note: no space before the > !) > It writes "stuff" without the extra space. cmd's echo doesn't add anything. It's just completely different from sh/bash echo. cmd's echo prints to stdout *whole command line*, ignoring first five characters ('echo' itself and next char). It preserves any quoting and trailing and leading spaces.
-- Best Wishes, Evgeny Grin -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple