Sujet : Re: Another shellcheck rant...
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.unix.shellDate : 05. Mar 2025, 19:50:30
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20250305104105.793@kylheku.com>
References : 1
User-Agent : slrn/pre1.0.4-9 (Linux)
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.
-- TXR Programming Language: http://nongnu.org/txrCygnal: Cygwin Native Application Library: http://kylheku.com/cygnalMastodon: @Kazinator@mstdn.ca