From: Josh Howard <jrh@vicor-nb.com>
To: zsh-users@sunsite.auc.dk
Subject: Perl like select()?
Date: 25 Aug 1999 08:48:09 -0700 [thread overview]
Message-ID: <87so57dfpi.fsf@evermore.vicor-nb.com> (raw)
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@vicor-nb.com>
next reply other threads:[~1999-08-25 15:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-25 15:48 Josh Howard [this message]
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
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=87so57dfpi.fsf@evermore.vicor-nb.com \
--to=jrh@vicor-nb.com \
--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).