fishi0x01 / vsh

vsh - HashiCorp Vault interactive shell and cli tool
MIT License
284 stars 12 forks source link

Properly handle ambigious files #36

Closed fishi0x01 closed 4 years ago

fishi0x01 commented 4 years ago

Vault allows a path structure like:

secret/a
secret/a/x
secret/a/y

For vsh this makes secret/a a potential file and directory at the same time. This leads to potentially unwanted behavior in cp, mv, cat and grep.

The same bug was already solved for rm in https://github.com/fishi0x01/vsh/issues/29