zsh-users
 help / color / mirror / code / Atom feed
* Redirect a specific file descriptor to a pipe?
@ 2017-03-10  0:21 Nathan Dorfman
  2017-03-10  2:04 ` Bart Schaefer
       [not found] ` <170309180417.ZM14034__34042.4779606566$1489111700$gmane$org@torch.brasslantern.com>
  0 siblings, 2 replies; 7+ messages in thread
From: Nathan Dorfman @ 2017-03-10  0:21 UTC (permalink / raw)
  To: zsh-users

Hi,

It's easy to create an arbitrary file descriptor and redirect it to a
file, e.g. 3>foo. Is there any way to redirect it to a pipe instead of
a file?

For example (assuming Linux),

strace -o /dev/fd/3 ./a.out > out.log 2> err.log 3>XXX

Instead of file XXX, I'd like to send fd 3 to |less. Is it possible?

Many thanks.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-03-11  2:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-10  0:21 Redirect a specific file descriptor to a pipe? Nathan Dorfman
2017-03-10  2:04 ` Bart Schaefer
     [not found] ` <170309180417.ZM14034__34042.4779606566$1489111700$gmane$org@torch.brasslantern.com>
2017-03-10 17:22   ` Stephane Chazelas
2017-03-10 18:51     ` Bart Schaefer
2017-03-10 23:32       ` Nathan Dorfman
2017-03-11  0:17         ` Mikael Magnusson
2017-03-11  2:24         ` Bart Schaefer

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).