From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29069 invoked from network); 2 Jul 2007 03:39:11 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 2 Jul 2007 03:39:11 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 39389 invoked from network); 2 Jul 2007 03:39:04 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 2 Jul 2007 03:39:04 -0000 Received: (qmail 26039 invoked by alias); 2 Jul 2007 03:39:02 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23630 Received: (qmail 24737 invoked from network); 2 Jul 2007 03:32:22 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 2 Jul 2007 03:32:22 -0000 Received: (qmail 31577 invoked from network); 2 Jul 2007 03:32:22 -0000 Received: from ug-out-1314.google.com (66.249.92.175) by a.mx.sunsite.dk with SMTP; 2 Jul 2007 03:32:18 -0000 Received: by ug-out-1314.google.com with SMTP id u2so684369uge for ; Sun, 01 Jul 2007 20:32:18 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=k3+HqKUjqjHkb/qM9F7elaDk0mvoxWu/scmKdWlgiIVO3HIUeg7H7mbzGezkOcm8tmYfMKyxnZR9egohI4CosdRPvPGt0MYxWiUf7L5TygTfPvPqDN8gFXZpKwFq4aN6lftHKfemnzF9qTdbMGskFerQ7gMvY72DVUGMjnoX4oU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=A9ot5pdvP3Nm+aZjRnnmcxvcJwNw+PupAIfhgtr8ooIguHQCMnIw1tOd8GAW8+BHM7jj6MtdYxDyrO3WvCeoXrfAGhz6ZKHLtqmxuORBxMcvL1Gt3zC7GLC/0bHZoe7HV2D4UEBh2VdVzFXHYHWuvM3QAA2vEnDgFCh12u7hJOA= Received: by 10.78.157.19 with SMTP id f19mr2697618hue.1183347138345; Sun, 01 Jul 2007 20:32:18 -0700 (PDT) Received: by 10.78.37.10 with HTTP; Sun, 1 Jul 2007 20:32:18 -0700 (PDT) Message-ID: <77d935a0707012032u6011f3d1scf97e399ef7c5fa3@mail.gmail.com> Date: Sun, 1 Jul 2007 20:32:18 -0700 From: "Janos Barbero" To: zsh-workers@sunsite.dk Subject: zsh weird behaviour (possibly bug?) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I often notice that complex shell commands (usually with 5-10 pipes and plenty of awk/sed) produce no output in zsh, but work fine in bash. I found a really simple one today. ls | sed 's/\<\(.\)\([^ ]*\)/\u\1\L\2/g' This produces no output in zsh, but does in any bash version. Further investigation revealed this to be due to my precmd's/postcmd's. So some more data: 1: precmd () { print -Pn "\ek%n@%m %~$ \e\\" } 2: preexec() { print -Pn "\ek%n@%m %~$ $1\e\\" } 3: precmd () { print -Pn "\ek%~\e\\" } 4: preexec() { print -Pn "\ek%~ $1\e\\" } If I have only line 4, command doesn't return (I have to manually kill the window), but plain ls works. If I leave lines 3 and 4, no output. Leaving either or both lines 1 and 2, it works fine. (I tried these with nothing else in my .zshrc.) Is the problem with my precmd/postcmd 3 and 4, or is this a zsh bug? Sorry if this is sent out to the wrong list, I understood this is where to file zsh bugs. Thanks, ~Janos