Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Perl like select()?
- X-seq: zsh-users 2513
- From: Josh Howard <jrh@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Perl like select()?
- Date: 25 Aug 1999 08:48:09 -0700
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- Sender: jrh@xxxxxxxxxxxxxxxxxxxxx
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