Here's a snippet or screenshot that shows the problem:
#!/bin/sh
fd=3
exec 3>&1
printf 'test\n' >&"$fd"
Here's what shellcheck currently says:
In t.sh line 4:
printf 'test\n' >&"$fd"
^-----^ SC2039: In POSIX sh, >& is undefined.
For more information:
https://www.shellcheck.net/wiki/SC2039 -- In POSIX sh, >& is undefined.
For bugs
shellcheck --version
or "online"): 0.6.0For new checks and feature suggestions
Here's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says:
Here's what I wanted or expected to see:
Nothing.