How does one re-redirect stdout to the console in bash?

For example:

$ ( exec > afoo ; echo hello ; echo there ; echo world )
$ tail -v -n +1 *
==> afoo <==
hello
there
world

$ ( exec > afoo ; echo hello ; exec > bfoo ;  echo there ; exec >
/dev/stdout ; echo world )
$ tail -v -n +1 *
==> afoo <==
hello

==> bfoo <==
world

How do I get "world" to go back to the console?

Regards,
- Robert

--~--~---------~--~----~------------~-------~--~----~
Central West End Linux Users Group (via Google Groups)
Main page: http://www.cwelug.org
To post: [email protected]
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
More options: http://groups.google.com/group/cwelug
-~----------~----~----~----~------~----~------~--~---

Reply via email to