Rishabh Patel created HDDS-13796:
------------------------------------
Summary: Globbing does not expand the parameters
Key: HDDS-13796
URL: https://issues.apache.org/jira/browse/HDDS-13796
Project: Apache Ozone
Issue Type: Bug
Reporter: Rishabh Patel
Assignee: Rishabh Patel
There are several places in the Ozone CLI which accept a local file path as a
parameter.
Consider the ozone debug ldb command which needs a path to a RocksDB instance.
When the path is provided in the form `--db=fullPath`, the command works
{code:java}
bash-5.1$ ozone debug ldb
--db=/data/hdds/hdds/CID-ac134998-b544-4bfb-be77-50e0f17ce2ad/DS-208d40b1-45f6-4200-aabc-a231ec5a2a04/container.db
ls
default
delete_txns
finalize_blocks
block_data
metadata
last_chunk_info
{code}
When the path is provided in the form `--db=path*`, the command does *not* work.
{code:java}
bash-5.1$ ozone debug ldb --db=/data/hdds/hdds/CID-*/DS-*/container.db ls{code}
When the path is provided in the form `--db path*`, the command works.
{code:java}
bash-5.1$ ozone debug ldb --db /data/hdds/hdds/CID-*/DS-*/container.db ls
default
delete_txns
finalize_blocks
block_data
metadata
last_chunk_info{code}
[~erose] pointed out that the shell path does not expand when it is provided as
a parameter after the `=` sign.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]