From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27061 invoked by alias); 29 Oct 2015 23:15:09 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20859 Received: (qmail 15350 invoked from network); 29 Oct 2015 23:15:07 -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=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern_com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=STkG0dsYjGgHN3zm5ih7O3Mz7GmQXF3vbmH6yE3GxO0=; b=IRLIkPE2meGT8lnu78nfh9/8fiFBCzGCFud8bcXxA1EoEDz/wddELy/FnICj4rRgan Y0OACP/TvG8x/XM6Kg5TwjeXl25DkJKQGMhzXYuXY/fiKrkphaFGYVeNRLLtQqHQpZvZ ESPV/+I6CqQhpD9+5iz9VHmGDEE+6eOWZLNeQCbmvYTDHSRiCJsM16l+zt1jjTj7qWhB BcatRSATPLgdOFJurX24eSKqOyJgbljtVS55W70u/EMXm9Sgls2JpGRVkCHm7+qBKkuK lnuvf3q4y8ua32j1bq75x6xmuic07SEYXsEWixzOQKaMRw1d6HhZ7gKDJ08OR5x/6Cwf eaeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=STkG0dsYjGgHN3zm5ih7O3Mz7GmQXF3vbmH6yE3GxO0=; b=SB3Fhjn8beNELGyakWQGTAysyLLt7fmxGo+fy5JoYBMp/4gJTEUih/A06mn8zabDMr vXgpU6+JsbaadOqXwoOEG6TigLxEfd9MrIdj50GE2zwJ7yvaN3DzTYKdcPGj1PeHPp+2 AH6laEcC++N4vMgbfooqIv0kMK5sTiqOW0Fy2xfpoZr1HM56pizekMtNgH8dxeQGhsog zjmB1Jh6BgYYcaPX9Sqpwf/BS4yYDjOt1nUKDTinV1M2VRJkyboHlVMeWK8+rIVzYsLo ErysXSJD4qEvuX4Pkia4nHLNj/yqJEhhYt5zPo6o4cy7v9DdXLdJMb3QDGOnRkKzpkpy Di+Q== X-Gm-Message-State: ALoCoQkXrm849Fu5z5ngcRvNVGwSFpErCxbbOjvGpYDNwsetvjtmuIJDoQlg2G5UT/jwfPaEQF4O MIME-Version: 1.0 X-Received: by 10.194.87.198 with SMTP id ba6mr5006154wjb.111.1446160503897; Thu, 29 Oct 2015 16:15:03 -0700 (PDT) In-Reply-To: References: Date: Thu, 29 Oct 2015 16:15:03 -0700 Message-ID: Subject: Re: Time in prompt not shown, when %P used (promptinit) From: Bart Schaefer To: Zsh Users Content-Type: text/plain; charset=UTF-8 On Thu, Oct 29, 2015 at 1:09 AM, Alexander Skwar wrote: > > I'm using zsh 5.1.1-1ubuntu1 on Ubuntu 15.10. > > Before Ubuntu 15.10, I had 14.04 and after the date ("Don Okt 29"), there > used to be the time. The time is now missing What version of zsh were you using on 14.04? I suspect this is a problem introduced when time formatting was changed to attempt to pass more of the format sequences directly through to strftime(). We have had this sort of problem come up for some other formats, depending on the strftime() implementation. The %P string was always expected to be expanded by strftime and for a long time (2004 - 2014) was simply ignored if it was empty (prior to 2004 it could cause a segfault). I'm guessing that now it's being incorrectly interpreted as an error and therefore aborting the entire %D{...} replacement.