From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24869 invoked by alias); 1 Feb 2018 05:41:16 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23106 Received: (qmail 132 invoked by uid 1010); 1 Feb 2018 05:41:16 -0000 X-Qmail-Scanner-Diagnostics: from mta01.eastlink.ca by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(24.224.136.30):SA:0(-2.6/5.0):. Processed in 9.187105 secs); 01 Feb 2018 05:41:16 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: rayandrews@eastlink.ca X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=utf-8; format=flowed X-Authority-Analysis: v=2.3 cv=dfKuI0fe c=1 sm=1 tr=0 a=RnRVsdTsRxS/hkU0yKjOWA==:117 a=RnRVsdTsRxS/hkU0yKjOWA==:17 a=IkcTkHD0fZMA:10 a=MG-1UDTNpzTSCq6MzPgA:9 a=QEXdDO2ut3YA:10 X-EL-IP-NOAUTH: 24.207.101.9 To: Zsh Users From: Ray Andrews Subject: multios stripping colors? Message-id: <7771fca9-b248-3159-8597-65ddb057214d@eastlink.ca> Date: Wed, 31 Jan 2018 21:11:01 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 Content-language: en-CA All:     $   eval "$@" That line in a function of mine can successfully eat some very complex input including various pipes and color codes.  However, when I try this: $ eval "$@" >&2 >! /tmp/_output Although I do get both outputs, the screen looses all colorized output that was previously there.  As I understand the docs, this might be expected at lest in so far as it seems to say that both outputs must be created at the same time, thus if there is some reason that color codes can't be sent to the file, then they won't be sent to the screen either. Is there anything I can do to get my color back?  On the screen at least.  I can send color escapes to a file and thecolors show upwhen the file is cat-ed, but I'm not sure that the colors as above can be sent to a file.  Can they? Seems to me I remember that they can't.