From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1020 invoked by alias); 26 Sep 2014 23:27:53 -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: 33255 Received: (qmail 19513 invoked from network); 26 Sep 2014 23:27:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=RJs6wkB+gdujb1dX/ynWWNmQBje5+wQeXY//SyQ6ueo=; b=N+YTuOn9TDkRs+FqVpXQHGen4Br1mdz9ihMlfRAudBvTCzvO0QiOR1a0/2mHXgQuq9 fCERLhQL1gtV3H8VXHSVftMAo6Qp9MwbpfJy/qCg3wGK81kc4m5RJlxetGRseOXUDnT8 MQX1g0hNs0WHk55qWpOperGwLD2zIs6zoXkcmofxWnarzbxmp6ZNxm1kViMtAZmLUx3/ GNc/ay7Gimh1YhnZE3BJifUzY7M6zGC0hXMgk+SLFzxmF16f1vsRt1duRCXdQGg5dgJA JEYauC0k/+m9GjMIMN+2DqMKC5PYcyx+Fn9mh9zs7ZchQhjxitoqAzkTwdW6wBT7E0IK fWRw== X-Gm-Message-State: ALoCoQlTw/+gYlWVJQgh3kVR6oGs+MpYALS4ldfCBcF3JZIu1YNtso1oFDlRAalHZLB9lmijdNZe MIME-Version: 1.0 X-Received: by 10.112.198.228 with SMTP id jf4mr22297231lbc.35.1411774055148; Fri, 26 Sep 2014 16:27:35 -0700 (PDT) X-Originating-IP: [2602:30a:2c91:e650:922b:34ff:fe5f:bfd2] Date: Fri, 26 Sep 2014 18:27:35 -0500 Message-ID: Subject: bug with %<< prompt expansion From: Joel Elkins To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary=001a11c27dc80f843d050400432b --001a11c27dc80f843d050400432b Content-Type: text/plain; charset=UTF-8 Hello. I think there may be a bug in the truncation operator %>> in the prompt expansion code. It seems to count a sequence surrounded by %{ %} as having width = 1, as shown below. % echo $ZSH_VERSION 5.0.6 % print -P "%4>.>12345" 123. % print -P "%4>.>1%{%}2345" 12. In my opinion, these two commands should have the same output. Thanks, -- Joel D. Elkins --001a11c27dc80f843d050400432b--