From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1386 invoked from network); 20 Oct 2000 04:13:51 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 20 Oct 2000 04:13:51 -0000 Received: (qmail 25638 invoked by alias); 20 Oct 2000 04:13:45 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13044 Received: (qmail 25626 invoked from network); 20 Oct 2000 04:13:45 -0000 Message-ID: <14831.50805.334555.712481@phl.itasoftware.com> Date: Fri, 20 Oct 2000 00:13:41 -0400 (EDT) From: greg@itasoftware.com (Greg Klanderman) To: zsh-workers@sunsite.auc.dk (Zsh list) Subject: script using vared to read commands - history bug Reply-To: greg@itasoftware.com X-Mailer: VM 6.62 under 21.1 (patch 9) "Canyonlands" XEmacs Lucid Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII If I run the following script: #!/bin/zsh prompt="%B%%%b " while cmd="" && vared -h -p "$prompt" cmd ; do echo " -- got: $cmd" print -s - "$cmd" done it works as intended, except that the most recent command never appears in the history. What's up? thank, Greg