Skip to content

Files

Latest commit

 

History

History
31 lines (21 loc) · 638 Bytes

SC1038.md

File metadata and controls

31 lines (21 loc) · 638 Bytes

Pattern: Use of <<(cmd) instead of < <(cmd)

Issue: -

Description

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).

Example of incorrect code:

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

Example of correct code:

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

Further Reading