From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25748 invoked by alias); 4 Feb 2015 23:07:33 -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: 34462 Received: (qmail 20633 invoked from network); 4 Feb 2015 23:07:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_PCNT autolearn=no version=3.3.2 Date: Thu, 5 Feb 2015 00:00:19 +0100 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: ksh93-like seek feature Message-ID: <20150204230019.GA8528@xvii.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.23-6413-vl-r76280 (2015-01-31) With ksh93, it is possible to seek: #!/bin/ksh93 rm -f tmpfile exec 3<> tmpfile echo foo >&3 exec 3>#((0)) cat <&3 rm -f tmpfile which outputs "foo". Could such a feature be added to zsh? -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)