Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Redirect a specific file descriptor to a pipe?
- X-seq: zsh-users 22549
 
- From: Nathan Dorfman <na@xxxxxxxx>
 
- To: zsh-users@xxxxxxx
 
- Subject: Redirect a specific file descriptor to a pipe?
 
- Date: Thu, 9 Mar 2017 17:21:31 -0700
 
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=20161025;        h=mime-version:sender:from:date:message-id:subject:to;        bh=boCyB9vMVs4Jzhxmvhx/Po1stFGS2hWaPiPE3vx1l9E=;        b=gB8UrcT8rNsyjPNMeu5HFFHc58lQIj5HqfUqt9zNL7+r45XLZzKNOuiEfSQFf2E0Kh         aQ4CQpPdWYxmH+DiyR6/4YlmD5i6bFA6JuV4Oc8tDzQL5UI3U6ZhKTjBpDw6Y1VgQ/4M         a4/u2Nbw+daSZ1xmq37pVpGbQOwlzB8bjlAfAmA+djbwdpkcRcc9F1nhtuC/EBv+deQf         BKqoxvyaSj4T+scls4/12h1GhekTZGM1tYr+zgVmF+ZGtjYA8lrhvdZS7/QrlfXt9Xs5         5ln+Yx/RH5OYpoQonWSdig2P4hSYG+ua8IdH1qOG9rpmAY/EzKs8gxwgipuaSnMFAE2N         Kvtg==
 
- List-help: <mailto:zsh-users-help@zsh.org>
 
- List-id: Zsh Users List <zsh-users.zsh.org>
 
- List-post: <mailto:zsh-users@zsh.org>
 
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
 
- Sender: ndorfman@xxxxxxxxx
 
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author