mirror of https://github.com/sharkdp/bat
Improve bash completion escaping
`compopt -o filenames` is a cheap way to accomplish mostly wanted behavior. However it is semantically incorrect when we are not actually completing filenames, and has side effects -- for example adds a trailing slash to candidates matching present dirs. bash >= 4.1 can `printf -v` to an array index, use it instead where available.pull/2316/head
parent
66edfe5dff
commit
2dbc88d3af
Loading…
Reference in New Issue