From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16748 invoked from network); 19 Aug 2004 16:46:00 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 19 Aug 2004 16:46:00 -0000 Received: (qmail 29993 invoked from network); 19 Aug 2004 16:45:54 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 Aug 2004 16:45:54 -0000 Received: (qmail 6849 invoked by alias); 19 Aug 2004 16:45:08 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7886 Received: (qmail 6839 invoked from network); 19 Aug 2004 16:45:08 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by 130.225.247.90 with SMTP; 19 Aug 2004 16:45:08 -0000 Received: (qmail 27266 invoked from network); 19 Aug 2004 16:43:10 -0000 Received: from lyta.akte.de (217.160.134.217) by a.mx.sunsite.dk with SMTP; 19 Aug 2004 16:43:07 -0000 Received: (root@lyta.akte.de) by lyta.akte.de id ; Thu, 19 Aug 2004 18:42:59 +0200 KRecCount: 1 KInfo: virscan ok KInfo: NoRelay, NoSpam Received: from condor.int.spiegl.de (pD9E93F84.dip.t-dialin.net [217.233.63.132]) by lyta.akte.de via kasmail (2.9) id ; Thu, 19 Aug 2004 16:42:54 GMT Received: from condor.int.spiegl.de (spiegl@localhost [127.0.0.1]) by condor.int.spiegl.de (8.12.11.Beta0/8.12.11.Beta0/Debian-1) with ESMTP id i7JGgo3W027350 for ; Thu, 19 Aug 2004 18:42:50 +0200 Received: (from spiegl@localhost) by condor.int.spiegl.de (8.12.11.Beta0/8.12.11.Beta0/Debian-1) id i7JGgotm027348 for zsh-users@sunsite.dk; Thu, 19 Aug 2004 18:42:50 +0200 X-Authentication-Warning: condor.int.spiegl.de: spiegl set sender to zsh.Andy@spiegl.de using -f Date: Thu, 19 Aug 2004 18:42:50 +0200 From: Andy Spiegl To: Zsh-users List Subject: Re: Tip of the day: previous command output Message-ID: <20040819164250.GA21575@spiegl.de> Mail-Followup-To: Zsh-users List References: <20040819085812.GL22962@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-PGP-GPG-Keys: mail -s "send pgp" auto@spiegl.de X-Accepted-File-Formats: ASCII .rtf .ps .pdf - *NO* MS Office files please. X-why-you-shouldnt-use-MS-LookOut: http://www.jensbenecke.de/l-oe-en.php X-warum-man-MS-Outlook-vermeiden-sollte: http://www.jensbenecke.de/l-oe-de.php X-Message-Flag: LookOut! You are using an insecure mail reader which can be used to spread viruses. User-Agent: Mutt/1.5.5.1+cvs20040105i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: ** X-Spam-Status: No, hits=2.2 required=6.0 tests=BAYES_10,RCVD_IN_DSBL, RCVD_IN_NJABL,RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 2.2 > I use this little function [*] for a similar purpose: Great! I was just about to post a followup asking how to do what Bart is doing because I use find and locate a lot, too but then I usually do stuff with the whole list of found files, not just one of them. So I modified Barts "keep" to use kept=$($*) instead of kept=($~*) So that I can do keep locate -i pictures | grep -i thursday | grep -i png keep print $kept | grep too_dark qiv $kept At least that's what I thought that would work. But it doesn't. The first keep prints out the found files but $kept doesn't contain the list. Help, where is my mistake? Andy. -- o _ _ _ ------- __o __o /\_ _ \\o (_)\__/o (_) -o) ----- _`\<,_ _`\<,_ _>(_) (_)/<_ \_| \ _|/' \/ /\\ ---- (_)/ (_) (_)/ (_) (_) (_) (_) (_)' _\o_ _\_v ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Our continuing mission: To seek out knowledge of C, to explore strange UNIX commands and to boldly code where no one has a manpage 4...