News for hackers. Stuff that matters.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by throwaway2037 on Wednesday June 01, 2022 @01:00PM (#31584766)
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.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by throwaway894345 on Wednesday June 01, 2022 @01:29PM (#31585203)
The quotes here have nothing to do with k8s, it's just how you encode JSON in shell.
Re:Ask HN: If Kubernetes is the solution, why are there so m... by peppermint_tea on Wednesday June 01, 2022 @02:40PM (#31586250)
apt-get install shellcheck

or

https://www.shellcheck.net/