From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16520 invoked by alias); 9 Jul 2015 08:41:30 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35744 Received: (qmail 25300 invoked from network); 9 Jul 2015 08:41:28 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.0 X-AuditID: cbfec7f5-f794b6d000001495-2c-559e33b41e21 Date: Thu, 09 Jul 2015 09:41:22 +0100 From: Peter Stephenson To: zsh workers Subject: Re: PATCH: Make ztrftime pass more things to strftime Message-id: <20150709094122.17abacc8@pwslap01u.europe.root.pri> In-reply-to: References: <1436310900-9519-1-git-send-email-mikachu@gmail.com> <20150708115312.4c81944e@pwslap01u.europe.root.pri> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrELMWRmVeSWpSXmKPExsVy+t/xy7pbjOeFGsxYqmxxsPkhkwOjx6qD H5gCGKO4bFJSczLLUov07RK4MrYs6mMpuMVc0f1wBXMD43emLkZODgkBE4mlmxuYIWwxiQv3 1rN1MXJxCAksZZSY+20elDODSWLitHVQzlZGiaNbH7B0MXJwsAioSjz5kgrSzSZgKDF102xG EFsEKNz8/R8LiC0sYCdx5GInM0g5r4C9xPpZGiBhToFgiWc999hBbCGBFiaJ3s1sIDa/gL7E 1b+foI6zl5h55QzYSF4BQYkfk++BjWQW0JLYvK2JFcKWl9i85i0zxBx1iRt3d7NPYBSahaRl FpKWWUhaFjAyr2IUTS1NLihOSs810itOzC0uzUvXS87P3cQICdmvOxiXHrM6xCjAwajEw9uw c26oEGtiWXFl7iFGCQ5mJRFeNql5oUK8KYmVValF+fFFpTmpxYcYpTlYlMR5Z+56HyIkkJ5Y kpqdmlqQWgSTZeLglGpgNJW9K6+t/XVhUa0Q270TuTMYvmqllP47vOksg82iUxOqjNbrbMm0 knCp2qNVWrlgs7LW4X8W1SEBc068Ue5asyzwSfoHiSlb7ibeSXOwucbdlLxe6/eueeqWyw7b bHkRr9ZyOzNdefuRUGYb73WeKjqPPVf6B+za/lTC8lLH7dUXPy/bdcS7SYmlOCPRUIu5qDgR AC4/BjhVAgAA There's not a particularly obvious way to skip an individual test, though it might be time we added one (that ought to be easy). You just print a warning to the control fd in that case, and do any comparison with input internally rather than relying on comparing with the sections after the status. You can test arbitrary dates with %%zmodload zsh/datetime % strftime "%Y" 0 1970 but you need to fail gracefully if zsh/datetime isn't available, too. pws