Essentially I used the shellcheck tool to pick over wd and try and improve the code style, particularly robustness against whitespace. This PR therefore will solve #89.
It is worth noting shellcheck does not natively support zsh so I ran it in bash mode and simply didn't touch anything too technical in syntax which could have been zsh specific. Most of the changes therefore are just adding loads of "quotations" all over the place.
Essentially I used the
shellcheck
tool to pick overwd
and try and improve the code style, particularly robustness against whitespace. This PR therefore will solve #89.It is worth noting
shellcheck
does not natively support zsh so I ran it in bash mode and simply didn't touch anything too technical in syntax which could have been zsh specific. Most of the changes therefore are just adding loads of "quotations" all over the place.