shellcheck icon indicating copy to clipboard operation
shellcheck copied to clipboard

SC3001 with busybox shell: "In dash, process substitution is not supported."

Open airtower-luna opened this issue 3 months ago • 0 comments

For bugs with existing features

  • Rule Id (if any, e.g. SC1000): SC3001
  • My shellcheck version (shellcheck --version or "online"): 0.11.0 (Debian Sid package 0.11.0-1)
  • [x] The rule's wiki page does not already cover this (e.g. https://shellcheck.net/wiki/SC2086)
  • [x] I tried on https://www.shellcheck.net/ and verified that this is still a problem on the latest commit

Here's a snippet or screenshot that shows the problem:

#!/bin/sh
# shellcheck shell=busybox
while read -r n; do
    echo "$n"
done < <(find /home)

Here's what shellcheck currently says:

Line 5:
done < <(find /home)
       ^-- SC3001 (error): In dash, process substitution is not supported.

Here's what I wanted or expected to see:

No error. The code works fine in Busybox' ash, and the shell type is not dash either way.

airtower-luna avatar Sep 17 '25 16:09 airtower-luna