Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Perl like select()?



Is there any way, in a script, to use a "Perl-like" select() to
associate stdout with a particular file, before the execution of the
rest of the script? For instance: I have a shell script that I want to 
simply put ">log.file" at the top, and then start echo'ing and doing
various output and expect everything to go to log.file, as opposed to
doing something like "./script.sh >> log.file"
In perl, you can open() and select() a file to associate where stdout
is written to. This might be a useful feature in zsh if it doesn't
already exist.


-- 
Josh Howard <jrh@xxxxxxxxxxxx>



Messages sorted by: Reverse Date, Date, Thread, Author