From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21381 invoked from network); 22 Aug 2005 18:44:52 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 22 Aug 2005 18:44:52 -0000 Received: (qmail 23430 invoked from network); 22 Aug 2005 18:44:46 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 Aug 2005 18:44:46 -0000 Received: (qmail 26210 invoked by alias); 22 Aug 2005 18:44:37 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9341 Received: (qmail 26199 invoked from network); 22 Aug 2005 18:44:36 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 22 Aug 2005 18:44:36 -0000 Received: (qmail 22320 invoked from network); 22 Aug 2005 18:44:36 -0000 Received: from skewer.dreamhost.com (64.111.107.13) by a.mx.sunsite.dk with SMTP; 22 Aug 2005 18:44:29 -0000 Received: from [192.168.1.100] (adsl-68-252-58-108.dsl.wotnoh.ameritech.net [68.252.58.108]) by skewer.dreamhost.com (Postfix) with ESMTP id 679DA14DF3 for ; Mon, 22 Aug 2005 11:44:26 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v734) In-Reply-To: <1050822152140.ZM7412@candle.brasslantern.com> References: <95E667D6-6AE4-4CDA-B420-30033315C886@tntluoma.com> <44613de005082113114c9f2092@mail.gmail.com> <16D53E3C-D453-414D-AB6C-3280FF5573CF@tntluoma.com> <1050822152140.ZM7412@candle.brasslantern.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Timothy Luoma Subject: SOLVED (more or less) Re: Extract CTIME in zsh 4.2.3? Date: Mon, 22 Aug 2005 14:44:23 -0400 To: zsh-users@sunsite.dk X-Mailer: Apple Mail (2.734) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 Yes, from my extensive testing of one FreeBSD system, one Linux (Gentoo) system, and one OS X system, there does not seem to be a consistent way of getting this information. 'stat' on OS X does not seem to store the created date. That killed the best chance for compatibility right there. There are a couple of different ways to get it in OS X. Tiger: mdls "${FILES}" | awk -F'"' '/kMDItemContentType /{print $2}' gives me 2005-08-20 If developer tools are installed: /Developer/Tools/GetFileInfo "${FILES}" | awk -F' ' '/created: / {print $2}' gives me 08/20/2005 which isn't the format I wanted, so I'm sticking with 'mdls' for now. Thanks to all who responded! TjL