| Subject: | Re: bash: request for a way to return variables to the parent of a subshell |
|---|---|
| From: | Richard Neill <rn214@xxxxxxxxxxxxxxxx> |
| Date: | Wed, 23 Jul 2008 05:32:06 +0100 |
| Newsgroups: | gnu.bash.bug |
Thank you. That's a really neat solution - and it would never have occurred to me. I always think from left to right! Richard Paul Jarc wrote: Richard Neill <rn214@xxxxxxxxxxxxxxxx> 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. paul |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: bash: request for a way to return variables to the parent of a subshell, Paul Jarc |
|---|---|
| Next by Date: | cannot pipe output of trap, proway . imbusch |
| Previous by Thread: | Re: bash: request for a way to return variables to the parent of a subshell, Richard Neill |
| Next by Thread: | Re: bash: request for a way to return variables to the parent of a subshell, Paul Jarc |
| Indexes: | [Date] [Thread] [Top] [All Lists] |