zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Richard Hartmann <richih.mailinglist@gmail.com>
Cc: zsh workers <zsh-workers@zsh.org>
Subject: Re: extended braces syntax, {1..32..-03}
Date: Mon, 6 Dec 2010 22:49:11 +0100	[thread overview]
Message-ID: <AANLkTinc5kqYFvpTmeNcsu6xbVrbWLP4CGbSFEK3ZhL=@mail.gmail.com> (raw)
In-Reply-To: <AANLkTinGZO_yfpv3QsOt3PiVWsWNMKwSKk0Crvz=Vt3E@mail.gmail.com>

On 6 December 2010 22:17, Richard Hartmann <richih.mailinglist@gmail.com> wrote:
> On Mon, Dec 6, 2010 at 22:00, Mikael Magnusson <mikachu@gmail.com> wrote:
>
>>>> Originally i had the same number of zeroes regardless of the minus
>> sign, but bash does it this way, so I figured I'd be consistent with
>> that.
>
> Oups. Can I claim "too stupid to read" in my defense?
>
> While I can see the advantage in being compatible with Bash, this
> behavior is arguably a bug. If you want, I can pester them about
> changing their behavior. Or you decide to change it. Or I just shut up
> :)

I just tested in C (printf) and it does it this way too,
printf ("%04d %04d", -5, 5);
-005 0005

as does zsh's printf
% printf '%04d %04d' -5 5
-005 0005

>On Mon, Dec 6, 2010 at 22:04, Mikael Magnusson <mikachu@gmail.com> wrote:

>> I actually realized it's not my fault, it always did that :). (but you
>> still needed setopt braceccl to expand them before the patch).

>Also a bug imo. But as it's been that way, changing it is probably not
>a option, is it?

Well, I don't think a feature only available by an option that does
something completely different can really be said to be reliable, but
I'll let someone else decide, if they even care. I could in any case
limit the nobraceccl case to disallow it.

-- 
Mikael Magnusson


      reply	other threads:[~2010-12-06 21:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-05 15:41 Mikael Magnusson
2010-12-05 17:25 ` Peter Stephenson
2010-12-05 19:17   ` Mikael Magnusson
2010-12-05 19:25     ` Mikael Magnusson
2010-12-05 21:32       ` Mikael Magnusson
2010-12-06 21:02         ` Richard Hartmann
2010-12-06 21:04           ` Mikael Magnusson
2010-12-06 21:18             ` Richard Hartmann
2010-12-07 11:40         ` Peter Stephenson
2010-12-06 20:57 ` Richard Hartmann
2010-12-06 21:00   ` Mikael Magnusson
2010-12-06 21:17     ` Richard Hartmann
2010-12-06 21:49       ` Mikael Magnusson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTinc5kqYFvpTmeNcsu6xbVrbWLP4CGbSFEK3ZhL=@mail.gmail.com' \
    --to=mikachu@gmail.com \
    --cc=richih.mailinglist@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).