I have a loop like:
exec 3< somefile
while read -ru3 fn; do
ffmpeg -i "$fn" ... "OutDir/$fn"
done
Shellcheck flags both the "read" and the "ffmpeg", with messages to the effect that ffmpeg might swallow up stdin - not realizing that the -u3
means the "read" is not reading from stdin.
On 2025-03-05, Kenny McCormack <gazelle@shell.xmission.com> wrote:
I have a loop like:
exec 3< somefile
while read -ru3 fn; do
ffmpeg -i "$fn" ... "OutDir/$fn"
done
Shellcheck flags both the "read" and the "ffmpeg", with messages to the
effect that ffmpeg might swallow up stdin - not realizing that the -u3
means the "read" is not reading from stdin.
Maybe the shellcheck code does know about -u, but simply doesn't
recognize it when it is clumped like that, together with another
option and its own argument.
On 2025-03-05, Kenny McCormack <gazelle@shell.xmission.com> wrote:
I have a loop like:
exec 3< somefile
while read -ru3 fn; do
ffmpeg -i "$fn" ... "OutDir/$fn"
done
Shellcheck flags both the "read" and the "ffmpeg", with messages to the
effect that ffmpeg might swallow up stdin - not realizing that the -u3
means the "read" is not reading from stdin.
Maybe the shellcheck code does know about -u, but simply doesn't
recognize it when it is clumped like that, together with another
option and its own argument.
On 2025-03-05, Kenny McCormack <gazelle@shell.xmission.com> wrote:
I have a loop like:
exec 3< somefile
while read -ru3 fn; do
ffmpeg -i "$fn" ... "OutDir/$fn"
done
Shellcheck flags both the "read" and the "ffmpeg", with messages to the
effect that ffmpeg might swallow up stdin - not realizing that the -u3
means the "read" is not reading from stdin.
Maybe the shellcheck code does know about -u, but simply doesn't
recognize it when it is clumped like that, together with another
option and its own argument.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 65 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 09:05:35 |
| Calls: | 862 |
| Files: | 1,311 |
| D/L today: |
2 files (6,679K bytes) |
| Messages: | 265,062 |