From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3319 invoked from network); 16 Jan 1998 14:50:35 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 16 Jan 1998 14:50:35 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id JAA20878; Fri, 16 Jan 1998 09:26:44 -0500 (EST) Resent-Date: Fri, 16 Jan 1998 09:26:44 -0500 (EST) From: Andrew Main Message-Id: <199801161427.OAA05931@taos.demon.co.uk> Subject: Re: PATCH: zsh-3.1.2-zefram3: 12 hour clock in prompts To: pws@ibmth.difi.unipi.it Date: Fri, 16 Jan 1998 14:27:48 +0000 (GMT) Cc: zsh-workers@math.gatech.edu In-Reply-To: <9801161314.AA38808@ibmth.difi.unipi.it> from "pws@ibmth.difi.unipi.it" at Jan 16, 98 02:14:51 pm X-Loop: zefram@tao.co.uk X-Headers: in preparation X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"luHG31.0.965.auslq"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3721 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu pws@ibmth.difi.unipi.it wrote: >It looks (as I mentioned before) as if someone has rationalised the %l >strftime sequence to do the same as in strftime(), i.e. print a space >before a number less than 10 in an hour given in 12-hour format. Hmm. ztrftime() is disgusting. I'd really like to strip it down to what POSIX requires date(1) to handle (and make it really POSIX conformant) -- to hell with existing users, it's used almost purely for prompts. Then do what should have been done with strftime() from the start: add flags to the % sequences to specify the type of fill. What do people think? -zefram