You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vidar Holen edited this page Oct 4, 2015
·
2 revisions
echo doesn't read from stdin, are you sure you should be piping to it?
Problematic code:
find .|echo
Correct code:
find .
Rationale:
You are piping command output to echo, but echo ignores all piped input.
In particular, echo is not responsible for putting output on screen. Commands already output data, and with no further actions that will end up on screen.