zsh-users
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-users <zsh-users@sunsite.dk>
Subject: Re: OT: Bash 3.0 Released
Date: Sun, 01 Aug 2004 15:42:00 +0200	[thread overview]
Message-ID: <4508.1091367720@trentino.logica.co.uk> (raw)
In-Reply-To: <200407301316.i6UDGw59021990@news01.csr.com>

Peter wrote:
> - I added the {num1..num2} syntax, borrowed from Perl.  Braces without
>   commas don't usually have any effect, so I wasn't too worried about
>   compatibility.  But to be on the safe side I made sure it fitted
>   the form exactly.
> 
> - Bash borrowed {num1..num2}, although without the feature to pad
>   leading zeroes.
> 
> - They've obviously decided to extend this to characters in a consistent
>   way.
> 
> Borrowing it back is presumably not that hard, but I'm doubtful how
> useful it would be.  It's in the sort of area where no one is going
> to expect much compatibility between shells.

On the other hand, if it came from perl, it might make sense to copy
perl more accurately. Perl handles things like (0xab..0xde) and
(aa..zz) and even (Ab1..De2) sanely. This makes it somewhat less like
braceccl. If you try things like {A..z} in the new bash, you'll see
that it is trying to be like braceccl. Just not very well given that it
limits the choice of start and end characters.

Oliver


      parent reply	other threads:[~2004-08-01 13:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-29 15:46 Felix Rosencrantz
2004-07-29 16:09 ` DervishD
2004-07-30 11:59   ` Stephane Chazelas
2004-07-30 12:24     ` Oliver Kiddle
2004-07-30 12:39       ` Stephane Chazelas
2004-07-30 13:16       ` Peter Stephenson
2004-07-31  8:47         ` Bart Schaefer
2004-08-01 13:42         ` Oliver Kiddle [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=4508.1091367720@trentino.logica.co.uk \
    --to=okiddle@yahoo.co.uk \
    --cc=zsh-users@sunsite.dk \
    /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).