zsh-users
 help / color / mirror / code / Atom feed
From: Mirar <mirar@idonex.se>
To: Danek Duvall <duvall@dhduvall.student.Princeton.EDU>
Cc: zsh-users@math.gatech.edu
Subject: Re: I've forgotten again how to do this --> 0-100
Date: 15 Jan 1998 02:03:50 +0100	[thread overview]
Message-ID: <82afcyfszt.fsf@puck.infovav.se> (raw)
In-Reply-To: Danek Duvall's message of "Wed, 14 Jan 1998 19:46:53 -0500"

> > ps -- what is this actually called, so I can possibly find it in the man pages ?
> 
> brace expansion, I believe.

What it really does is expading "{0..100}" to "0 1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100", so 

for i in {0..100};  ...

is the same as 

for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
93 94 95 96 97 98 99 100;  ...

/Mirar

__________________________________________________________________________
Idonex AB               Telefon      Telefax      nalle
Skolgatan 10		013-376814   013-376801   0708-376867
582 34 Linköping        mirar@idonex.se           http://www.idonex.se/


  reply	other threads:[~1998-01-15  1:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-15  0:12 Timothy J Luoma
1998-01-15  0:46 ` Danek Duvall
1998-01-15  1:03   ` Mirar [this message]
1998-01-15 10:28 ` Andrew Main
1998-01-15 15:01   ` Geoff Wing
1998-01-15 17:39   ` Brandon C. George
1998-01-15 17:51     ` Andrew Main
1998-01-15 20:32   ` Sweth Chandramouli
1998-01-15 22:59     ` Geoff Wing
1998-01-21 16:26       ` loops and all that Sven Guckes
1998-01-22  3:54   ` related question Sweth Chandramouli
1998-01-22  9:24     ` Bernd Eggink
1998-01-22 13:00     ` Mirar

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=82afcyfszt.fsf@puck.infovav.se \
    --to=mirar@idonex.se \
    --cc=duvall@dhduvall.student.Princeton.EDU \
    --cc=zsh-users@math.gatech.edu \
    /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).