3 ms·
About quoting rules: We desperately needs static analysis or IDEs (Emacs plugins, whatever) that "explain" exactly what quotes do in a particular context. When
by throwaway2037 4y ago
About quoting rules: We desperately needs static analysis or IDEs (Emacs plugins, whatever) that "explain" exactly what quotes do in a particular context. When I returned to C++ recently, I was blown away by Clang-Tidy (JetBrains CLion integration). Literally: Clang-Tidy seems to "know what you really want" and give intelligent suggestions. For someone whom is a very average C++ programmer, it instantly leveled me up! I could see the same for someone writing /bin/sh, /bin/ksh, /bin/bash shell commands. If the IDE could give some hints, it would be incredibly helpful to many.
- throwaway894345 4y agoThe quotes here have nothing to do with k8s, it's just how you encode JSON in shell.
- peppermint_tea 4y agoapt-get install shellcheck or https://www.shellcheck.net/ https://www.shellcheck.net/