all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: the_wurfkreuz via "Emacs development discussions." <emacs-devel@gnu.org>
To: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: [Feature Request] Add Zsh-style range and list iteration syntax to Eshell
Date: Wed, 04 Dec 2024 17:15:48 +0000	[thread overview]
Message-ID: <YMYRCbhe-joscqI5Yi7KwU6OmubPgGCXuBoLzoGpSf10hen72BVWaVRNEHvzGFAoIS01-v9jE4bmop1oj_5DYA6deogK0vzCpq7USSEMnWM=@proton.me> (raw)

[-- Attachment #1: Type: text/plain, Size: 312 bytes --]

Zsh has an ability to quickly iterate over ranges and lists like this:

touch file{1,3}
creates: file1, file3

touch file{1..3}

creates: file1, file2, file3

It would be handy to have something similar in eshell instead of explicitly writing a loop:

for i in (number-sequence 1 5) {
touch (format "file%d" i)
}

[-- Attachment #2: Type: text/html, Size: 639 bytes --]

             reply	other threads:[~2024-12-04 17:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-04 17:15 the_wurfkreuz via Emacs development discussions. [this message]
2024-12-04 18:44 ` [Feature Request] Add Zsh-style range and list iteration syntax to Eshell Jim Porter

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='YMYRCbhe-joscqI5Yi7KwU6OmubPgGCXuBoLzoGpSf10hen72BVWaVRNEHvzGFAoIS01-v9jE4bmop1oj_5DYA6deogK0vzCpq7USSEMnWM=@proton.me' \
    --to=emacs-devel@gnu.org \
    --cc=the_wurfkreuz@proton.me \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.