Talk:Brace expansion using ranges: Difference between revisions
Content added Content deleted
(Out of curiosity – stepped Alpha expansions like {a..z..3} seen working in the (unix shell) wild ?) |
|||
Line 1: | Line 1: | ||
===Out of curiosity – stepped Alpha seen working in the (unix shell) wild ?=== |
===Out of curiosity – stepped Alpha seen working in the (unix shell) wild ?=== |
||
There is a reference to stepped alpha expansions in the increment section of the reference to which I linked in the task description https://wiki.bash-hackers.org/syntax/expansion/brace#increment (referred to without elaboration as an 'interesting feature'). |
There is a reference to stepped alpha expansions in the increment section of the reference to which I linked in the task description (https://wiki.bash-hackers.org/syntax/expansion/brace#increment) (referred to without elaboration as an 'interesting feature'). |
||
The only reason that haven't implemented it myself (in the current draft of the JS reference implementation) is that it didn't match what I was seeing (macOS Catalina) either in the default '''zsh''' command line or in a script with the preamble <code>#!/bin/bash</code>, neither of which expand <code>{a..z..3}</code> to anything other than itself. |
The only reason that haven't implemented it myself (in the current draft of the JS reference implementation) is that it didn't match what I was seeing (macOS Catalina) either in the default '''zsh''' command line or in a script with the preamble <code>#!/bin/bash</code>, neither of which expand <code>{a..z..3}</code> to anything other than itself. |
||
I don't think that's a good reason to discourage implementing stepped alpha brace ranges here – they seem a good idea, and we do have that reference – but I wondered if anyone has actually seen stepped alpha expansions work in the wild (where ''wild'' is defined as a shell prompt or shell script). [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 17:57, 26 August 2020 (UTC) |
I don't think that's a good reason to discourage implementing stepped alpha brace ranges here – they seem a good idea, and we do have that reference – but I wondered (idly) if anyone has actually seen stepped alpha expansions work in the wild (where ''wild'' is defined as a shell prompt or shell script). [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 17:57, 26 August 2020 (UTC) |