|
|
|
|
|
by hollerith
367 days ago
|
|
The Python code Kragen gave is more characters to type, but fewer footguns. Shell scripts are much higher in footguns per character than most programming languages. It is possible for a coder to understand bash so well that he never shoots his own foot off, but it requires more learning hours than the same feat in another language requires, and unless I've also put in the (many) learning hours, I have no way of knowing whether a shell script written by someone I don't know contains security vulnerabilities or fragility when dealing with unusual inputs that will surface in unpredictable circumstances. The traditional Unix shell might be the most overrated tool on HN. |
|
What are the footguns in this?