Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Perl like select()?
- X-seq: zsh-users 2521
- From: Josh Howard <jrh@xxxxxxxxxxxx>
- To: Zefram <zefram@xxxxxxxx>
- Subject: Re: Perl like select()?
- Date: 25 Aug 1999 11:35:39 -0700
- Cc: zsh-users@xxxxxxxxxxxxxx
- In-reply-to: Zefram's message of "Wed, 25 Aug 1999 17:16:04 +0100 (BST)"
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <E11JfiW-0001Ad-00@xxxxxxxxxxxxxxxxxx>
- Sender: jrh@xxxxxxxxxxxxxxxxxxxxx
Well, my ignorance is now managable. Thanks.
Zefram <zefram@xxxxxxxx> writes:
> Josh Howard wrote:
> >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?
>
> exec > file
>
> permanently redirects stdout. Any redirection can be used this way.
>
> > 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,
>
> Interestingly enough, that's the syntax I used for this operation when
> designing a new shell from scratch[1].
>
> -zefram
>
> [1] The Elate shell. It's proprietary and doesn't run on Unix, so don't
> ask for it.
>
--
Josh Howard <jrh@xxxxxxxxxxxx>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author