Skip to content

Files

Latest commit

 

History

History
25 lines (15 loc) · 505 Bytes

SC2008.md

File metadata and controls

25 lines (15 loc) · 505 Bytes

Pattern: Piping command output to echo

Issue: -

Description

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.

Example of incorrect code:

find . | echo

Example of correct code:

find .

Further Reading