jalanb / cde

cde extends cd, historically
MIT License
2 stars 0 forks source link

kd -o uses home directory #8

Closed jalanb closed 11 years ago

jalanb commented 11 years ago

The -o option allows one to choose an "old" path (one from history). Hence it should be followed by a string to choose, so this is expected (when looking for "stuff" in history)

$ kd -o stuff

And this should be an error:

$ kd -o

In practice the latter actually uses $HOME, which is often in the history, so it goes home. It should be an error