| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Avoid very many forks; and work around Bash 3.0 bugs with array
behaviour:
bash-3.0$ nodes=(a b c)
bash-3.0$ printf '%s\n' "${nodes[@]:1}"
b
c
bash-3.0$ nodes=(a b)
bash-3.0$ printf '%s\n' "${nodes[@]:1}"
bash-3.0
Compare:
bash-5.0$ nodes=(a b c)
bash-5.0$ printf '%s\n' "${nodes[@]:1}"
b
c
bash-5.0$ nodes=(a b)
bash-5.0$ printf '%s\n' "${nodes[@]:1}"
b
bash-5.0$
|
|
|
|
|
| |
I suspect there's a more correct way to do this, but it's working well
for the moment.
|
|
|
|
| |
Cheaper (I think).
|
|
|
|
|
|
|
|
|
|
|
| |
Some general changes:
* Apply case sensitivity switching in more contexts, using a dynamically
loaded helper function
* Use array counters for appending to COMPREPLY where possible
* Lots more short-circuiting to limit structural depth
These changes are expansive and there will definitely be bugs.
|
|
|
|
|
|
| |
I forgot that the second positional parameter $2 to these completion
functions is the word currently being completed. That's going to make
things a bit less verbose.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Bash 4.4 hangs in an awkward way (probably outputting the literal null
char in some unexpected context) without this; I'm not sure if this is a
bug or whether it's just been tolerated behaviour until now.
|
| |
|
| |
|
|
|
|
| |
Add comments, add short-circuit to vared() completion
|
|
|