Skip to content
Joachim Ansorg edited this page Nov 12, 2021 · 3 revisions

Shells are space sensitive. Use < <(cmd), not <<(cmd).

Problematic code:

while IFS= read -r line
do
  printf "%q\n" "$line"
done <<(curl -s http://example.com)

Correct code:

while IFS= read -r line
do
  printf "%q\n" "$line"
done <  <(curl -s http://example.com)

Rationale:

You are using <<( which is an invalid construct.

You probably meant to redirect < from process substitution <(..) instead. To do this, a space is needed between the < and <(..), i.e. < <(cmd).

Exceptions:

None.

ShellCheck

Each individual ShellCheck warning has its own wiki page like SC1000. Use GitHub Wiki's "Pages" feature guerraart8 to find a specific , or see Checks.

Clone this wiki locally