[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash: request for a way to return variables to the parent of a subsh
Re: bash: request for a way to return variables to the parent of a subshell
Wed, 23 Jul 2008 05:32:06 +0100
Thunderbird 188.8.131.52 (X11/20080629)
Thank you. That's a really neat solution - and it would never have
occurred to me. I always think from left to right!
Paul Jarc wrote:
Richard Neill <address@hidden> wrote:
the aim is to parse the output of "ffmpeg -formats" to see whether
certain codecs are supported by that build.
I'd use something like:
while read line; do
done < <(ffmpeg -formats 2>/dev/null)
That puts ffmpeg into a subshell instead of read.