.vscode/settings.json crates/nu-command/assets/228_themes.json samples/wasm/package-lock.json samples/wasm/package.json target/.rustc_info.json and all the other json files
12
WSL2
^echo **/*.json
.vscode/settings.json crates/nu-command/assets/228_themes.json samples/wasm/package-lock.json samples/wasm/package.json target/.rustc_info.json and all the other json files
Test 5 with MacOS's built in echo
Index
Platform
Test
Result
13
MacOS
^echo '**/*.json'
**/*.json
14
MacOS
^echo "**/*.json"
**/*.json
15
MacOS
^echo `**/*.json`
.vscode/settings.json crates/nu-command/assets/228_themes.json samples/wasm/package-lock.json samples/wasm/package.json target/.rustc_info.json and all the other json files
16
MacOS
^echo **/*.json
.vscode/settings.json crates/nu-command/assets/228_themes.json samples/wasm/package-lock.json samples/wasm/package.json target/.rustc_info.json and all the other json files
Test 6 quote argument with spaces
Index
Platform
Test
Result
17
MacOS
^echo "โname='xx' โvalue='yy'"
โname='xx' โvalue='yy'
18
MacOS
^echo 'โname="xx" โvalue="yy"'
โname="xx" โvalue="yy"
19
Windows
^echo "โname='xx' โvalue='yy'"
"โname='xx' โvalue='yy'" (failure)
20
Windows
^echo 'โname="xx" โvalue="yy"'
'โname="xx" โvalue="yy"' (failure)
But if the argument is defined as a variable, we don't need to quote them.