Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • According to a quick search here, several other shells support brace expansion: unix.stackexchange.com/a/269713/117549 Commented Oct 16, 2017 at 9:21
  • @JeffSchaller Yes, many shells support brace expansion (but not all). Do you think my answer makes it sound like bash is the only one? If so, I'd be pleased to reword it; if not, I'll probably avoid making it any more complicated than it already is. Commented Oct 16, 2017 at 9:23
  • Maybe it's the way I'm reading the very last sentence. It seems less likely that they'll run into a shell that doesn't support it. Commented Oct 16, 2017 at 9:26
  • @JeffSchaller You're right, it was potentially confusing. I've reworked that paragraph to make it clearer. As for how likely one is to run into a shell that doesn't support brace expansion, it's actually quite common these days on Debian and its derivatives, since for some years /bin/sh has been dash rather than bash. On the other hand, my guess is that being on a system that has no Bourne-style shell installed and usable that supports brace expansion is probably pretty rare today, aside from very minimal BusyBox-based systems. Commented Oct 16, 2017 at 9:36