diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-06 11:26:14 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-06 11:30:10 +1300 |
commit | 5e75e4044f7f5a70d743af6b47009354ab518c4e (patch) | |
tree | 826babc065540c39dcb22fded402a0a96ced3e9c /README.md | |
parent | Merge branch 'hotfix/v3.0.1' into develop (diff) | |
download | dotfiles-5e75e4044f7f5a70d743af6b47009354ab518c4e.tar.gz dotfiles-5e75e4044f7f5a70d743af6b47009354ab518c4e.zip |
Refactor bd()/sd() completion a lot
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$
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions