Brace expansion support? #489
-
Clink does not appear to support brace expansion. eg.
Is it possible to have this work, but my current configuration needs modifying? Or if clink doesn't support this, why is that? It seems to be something that it could support, judging by other such expansions that it does support. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Brace expansion is a shell expansion, part of the bash shelf scripting language, not part of the Readline input editor. Brace expansion can be used in shell scripts, which means it's part of the language. Tilde expansion makes that confusing, though, since there are two different kinds: tilde expansion during completion which is done by Readline and also tilde expansion in the shell language which is done in the script engine and can be used in scripts (and has slightly different syntax!). Clink only has the first kind of tilde expansion, which happens in the input editor. One could write a Lua script to perform brace expansion. One would have to implement it from scratch, so it might not end up with exactly identical behavior to the bash shell expansion form of brace expansion. |
Beta Was this translation helpful? Give feedback.
Brace expansion is a shell expansion, part of the bash shelf scripting language, not part of the Readline input editor. Brace expansion can be used in shell scripts, which means it's part of the language.
Tilde expansion makes that confusing, though, since there are two different kinds: tilde expansion during completion which is done by Readline and also tilde expansion in the shell language which is done in the script engine and can be used in scripts (and has slightly different syntax!). Clink only has the first kind of tilde expansion, which happens in the input editor.
One could write a Lua script to perform brace expansion. One would have to implement it from scratch, so it might not…