From: Josh Howard <jrh@vicor-nb.com>
To: Zefram <zefram@fysh.org>
Cc: zsh-users@sunsite.auc.dk
Subject: Re: Perl like select()?
Date: 25 Aug 1999 11:35:39 -0700 [thread overview]
Message-ID: <87u2pnu2ro.fsf@evermore.vicor-nb.com> (raw)
In-Reply-To: Zefram's message of "Wed, 25 Aug 1999 17:16:04 +0100 (BST)"
Well, my ignorance is now managable. Thanks.
Zefram <zefram@fysh.org> 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@vicor-nb.com>
next prev parent reply other threads:[~1999-08-25 18:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-25 15:48 Josh Howard
1999-08-25 16:16 ` Zefram
1999-08-25 16:48 ` Owen M. Astley
1999-08-25 17:00 ` Bart Schaefer
1999-08-25 17:08 ` Owen M. Astley
1999-08-25 16:49 ` Bart Schaefer
1999-08-25 18:35 ` Josh Howard [this message]
1999-08-27 10:56 ` Nemeth Ervin
1999-08-25 16:26 Jay Sekora
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87u2pnu2ro.fsf@evermore.vicor-nb.com \
--to=jrh@vicor-nb.com \
--cc=zefram@fysh.org \
--cc=zsh-users@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).