[–] Helitioo 4y ago ↗ I hate them :(It's weird syntax. For plenty of cases you need to store return codes somehow to act on errors etc.If possible I prefer something like golang, I even prefer writing scripts in PHP.At least I have a proper debugger, ide, clear functions and can easily handle errors.Just try to use curl and act on non 2* code in a simple manner... Try to split up the content from potential API errors [–] ducktective 4y ago ↗ shellcheck
[–] EdwardDiego 4y ago ↗ > Every machine has Bash installed.Sure, but what version? [–] JMS2021 4y ago ↗ The latest stable one, except Mac's because they aren't reliable *nix machines anymore. Bash is a third class citizen on MacOS now.
[–] JMS2021 4y ago ↗ The latest stable one, except Mac's because they aren't reliable *nix machines anymore. Bash is a third class citizen on MacOS now.
4 comments
[ 5.6 ms ] story [ 26.5 ms ] threadIt's weird syntax. For plenty of cases you need to store return codes somehow to act on errors etc.
If possible I prefer something like golang, I even prefer writing scripts in PHP.
At least I have a proper debugger, ide, clear functions and can easily handle errors.
Just try to use curl and act on non 2* code in a simple manner... Try to split up the content from potential API errors
Sure, but what version?