[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] How to output TAB completion result to pipe?
From: |
Chet Ramey |
Subject: |
Re: [Help-bash] How to output TAB completion result to pipe? |
Date: |
Wed, 01 Aug 2012 17:11:04 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 |
On 8/1/12 4:49 PM, Peng Yu wrote:
> Hi,
>
> TAB completion may results in many candidates, in which case I want to
> pipe it to less or a file. Is there a way to do?
Sure. Readline uses rl_outstream (stderr) for output. Use `exec' to
temporarily redirect it where you want.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/