all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [Feature Request] Add Zsh-style range and list iteration syntax to Eshell
@ 2024-12-04 17:15 the_wurfkreuz via Emacs development discussions.
  2024-12-04 18:44 ` Jim Porter
  0 siblings, 1 reply; 2+ messages in thread
From: the_wurfkreuz via Emacs development discussions. @ 2024-12-04 17:15 UTC (permalink / raw)
  To: emacs-devel@gnu.org

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-04 18:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-04 17:15 [Feature Request] Add Zsh-style range and list iteration syntax to Eshell the_wurfkreuz via Emacs development discussions.
2024-12-04 18:44 ` Jim Porter

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.