Shells are space sensitive High

The construct <<( is invalid and likely a mistake. You probably meant to redirect input from process substitution using < <(cmd). Ensure there's a space between < and <(..) for correct syntax.

Detector ID
shell/shells-are-space-sensitive@v1.0
Category
Common Weakness Enumeration (CWE) external icon
-
Tags
-

Noncompliant example

1
2# Noncompliant: `<<(cmd)` is invalid.
3while read -r line; do
4    echo "$line"
5done <<(tail -f /var/log/syslog)

Compliant example

1
2# Compliant: `< <(cmd)` properly separates input redirection from process substitution, allowing correct execution.
3while read -r line; do
4    echo "$line"
5done < <(tail -f /var/log/syslog)