From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1183 invoked by alias); 2 Feb 2011 18:13:40 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28693 Received: (qmail 8921 invoked from network); 2 Feb 2011 18:13:38 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at benizi.com designates 64.130.10.15 as permitted sender) Date: Wed, 2 Feb 2011 13:13:10 -0500 (EST) From: "Benjamin R. Haskell" To: ZyX cc: zsh-workers@zsh.org Subject: Re: Tee all output to log file? In-Reply-To: <201102022105.41927@-zyx> Message-ID: References: <201102020804.29094@-zyx> <201102022105.41927@-zyx> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-1463810530-1358937231-1296670414=:2792" ---1463810530-1358937231-1296670414=:2792 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Wed, 2 Feb 2011, ZyX wrote: > Reply to message «Re: Tee all output to log file?», > sent 20:28:13 02 February 2011, Wednesday > by Benjamin R. Haskell: > >> && exec env doinglogging=true ... > I used to write this as «doinglogging=true exec ...» or with > doinglogging=true > exec ... > Any reason why env command should envoked here I am not aware of? Nope, but it doesn't hurt much. 'env' execs, AFAIK, so it's only an extra (light) process startup. Mainly I was lazy. Accidentally wrote it as: && exec doinglogging=true screen ... Didn't work, since I'd put the precmd modifiers in the wrong order, and I tacked on 'env' instead of rearranging. -- Best, Ben ---1463810530-1358937231-1296670414=:2792--