braces icon indicating copy to clipboard operation
braces copied to clipboard

Braces don't expand if they start with the range operator

Open tim-hitchins-ekkosense opened this issue 7 months ago • 5 comments

Example:

braces.expand('{..a,b}/c')

Expected result:

[ '..ac', 'bc' ]

Actual result:

[ '{..a,b}c' ]

Note that the current behaviour is differing from the bash implementation:

tim@EK-22-LT-04:~/virtuoso-test-data$ echo {..a,b}c
..ac bc

Note that it does work if the .. comes anywhere except the first parameter to the brace, so

'{b,..a}c'
{b,z,..a}c

do each give

[ 'bc', '..ac' ]
[ 'bc', 'zc', '..ac' ]

tim-hitchins-ekkosense avatar Jul 04 '24 13:07 tim-hitchins-ekkosense