I am trying capture command output to a variable but asterisk(*) characters automatically gets converted into directory files.
Command I want to run
secrets=$(vault read kv/data/secrets)
Expression to recreate the scenario
cronExpression=$(echo "33 * * *") && echo $cronExpression
Expected
cronExpression="33 * * *"
Actual
33 LICENSE README.md test.json LICENSE README.md test.json LICENSE README.md test.json
I have LICENSE README.md test.json
files in a folder where I am trying to execute this command so each *
gets converted into list files in the same directory