Tarrasch/zsh-bd — pull request #4 by voria (2013-11-25 16:05:13+00:00)
Title: Fix handling of paths with white spaces

I noticed that bd is badly broken when dealing with paths containing white spaces.
Example:

# pwd
/home/voria/a/b/c e/d f g

If I autocomplete bd:

# bd
g f d e c b a voria home /

I can even choose "f" from the list:

# bd f
# pwd
/home/voria/a/b/c e

To fix this the logic used to get the list of parent directories has to be completely changed.