From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18665 invoked from network); 21 Oct 2001 20:42:58 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 21 Oct 2001 20:42:58 -0000 Received: (qmail 2250 invoked by alias); 21 Oct 2001 20:42:53 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 16095 Received: (qmail 2237 invoked from network); 21 Oct 2001 20:42:53 -0000 Date: Sun, 21 Oct 2001 21:42:52 +0100 From: Adam Spiers To: zsh workers mailing list Subject: zrecompile not verbose enough on failure? Message-ID: <20011021214251.A31530@thelonious.new.ox.ac.uk> Reply-To: Adam Spiers Mail-Followup-To: zsh workers mailing list Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Home-Page: http://www.new.ox.ac.uk/~adam/ X-OS: RedHat Linux Seen in zrecompile: if { [[ ! -f $zwc ]] || mv $zwc ${zwc}.old } && zcompile $map $tmp $zwc $files 2> /dev/null; then [[ -z $quiet ]] && print succeeded else [[ -z $quiet ]] && print failed ret=1 fi Why does zrecompile redirect STDERR to /dev/null when running zcompile? It means that if you're doing something like zrecompile ... -M -U ~/.zsh/functions.zwc ~/.zsh/functions/*(*) then if something in ~/.zsh/functions has a syntax error, you just get re-compiling /nfs-home/adams/.zsh/functions.zwc: failed with no indication of which file was the culprit.