shellcheck
shellcheck copied to clipboard
SC3001 with busybox shell: "In dash, process substitution is not supported."
For bugs with existing features
- Rule Id (if any, e.g. SC1000): SC3001
- My shellcheck version (
shellcheck --versionor "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.