{"comment":{"url":"https://api.github.com/repos/genkimarshall/exercises/comments/12205616","html_url":"https://github.com/genkimarshall/exercises/commit/d7c45dcc1b1f71613e6ea752e651c337ea4adfe5#commitcomment-12205616","id":12205616,"user":{"login":"genkimarshall","id":4513869,"avatar_url":"https://avatars.githubusercontent.com/u/4513869?v=3","gravatar_id":"","url":"https://api.github.com/users/genkimarshall","html_url":"https://github.com/genkimarshall","followers_url":"https://api.github.com/users/genkimarshall/followers","following_url":"https://api.github.com/users/genkimarshall/following{/other_user}","gists_url":"https://api.github.com/users/genkimarshall/gists{/gist_id}","starred_url":"https://api.github.com/users/genkimarshall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genkimarshall/subscriptions","organizations_url":"https://api.github.com/users/genkimarshall/orgs","repos_url":"https://api.github.com/users/genkimarshall/repos","events_url":"https://api.github.com/users/genkimarshall/events{/privacy}","received_events_url":"https://api.github.com/users/genkimarshall/received_events","type":"User","site_admin":false},"position":18,"line":18,"path":"genki/mimic.cpp","commit_id":"d7c45dcc1b1f71613e6ea752e651c337ea4adfe5","created_at":"2015-07-16T15:05:46Z","updated_at":"2015-07-16T15:05:46Z","body":"Ah, did not know that.\r\n\r\nMm, okay that makes sense, I see that behavior now. But in that case, just removing the \"\\n\" output at the end of each output causes that diff to return to `0` status. Which makes sense.\r\nBut then that makes `diff <echo blah blah blah) <(echo blah blah blah | ./mimic); echo $?` (i.e. same, without `\\-n` flag) have a non-zero return code. I think that is fine though because `echo` default adding a new line is really just an implementation choice of theirs. I did look at the flags and didn't find anything particularly of interest over removing the new-line to `cout`."}}