4 ms·
What about jc 'aws sts get-caller-identity' | jq [..] That way the aws process can be a subprocess of jc, which can read where the binary is and get its versi
by dj_mc_merlin 3y ago
What about
jc 'aws sts get-caller-identity' | jq [..]
That way the aws process can be a subprocess of jc, which can read where the binary is and get its version automatically.
- jasonjayr 3y agoThat can get thorny, because it adds another level of shell-quoting/escapes, and that is a notorious vector for security problems.
- sesm 3y agojc already has this, see ‘jc dig example.com’ in examples. They call it ‘alternative magic syntax’, but IMO it should be the primary syntax, while piping and second-guessing the previous commands parameters and version should be used only in exceptional cases.