3 ms·
I have written many arguably complicated shell scripts. It is almost always a painful experience that involves things that are hard to look up because of terse
by stevebmark 11y ago
I have written many arguably complicated shell scripts. It is almost always a painful experience that involves things that are hard to look up because of terse and confusing syntax. There are plenty of examples. Dealing with executing commands with nested quotes (double and single) with file names with spaces, doing anything with arrays, [] vs [[]], the rules of subshells, loop syntax when dealing with space delimiter vs line break delimiter, the lengthy list of -flag if[[]] conditions, comparing strings to variables... when I say "design failure" it's completely from personal experience and frustration from trying to do simple tasks in bash and hitting confusing syntax wall after wall. I hope you are saying
>"one of the best languages I've ever used"
in an argumentative sense and not sincerely! Bash is obviously not capable of many things and seems limiting to choose as a favorite (main go to?) language.
- vacri 11y agoShell is a 'glue' language, not a 'be' language. It's for gluing things together, not for being something in it's own right. Though yes, it'd be a lot nicer if arrays in particular didn't suck so much in shell.