When using bash, sh, or similar shells we frequently encounter the following problems: -…
- User
When using bash, sh, or similar shells we frequently encounter the following problems:
- it can only use integer math, which is limiting and the process itself fells clumsy
- if program doesn't output any text, or output unexpected type (ex. text instead of numbers), the script will fail to do it's job, but won't exit. Therefore it can cause havoc.
- if we make functions inside the script, we can't really check if they work as intended. That's especially bad, when causes problems only sometimes.
- there's no normal array functionality. We can try to use IFS, but after a while it causes madness
On the other hand shells have some really good properties:
- piping through multiple programs
- short commands for executions
As I believe, most of the problems can be avoided, if out shell was more close to programming language. But we also want to keep good properties.
Are there any shells, or programs that can act as a shell? Recommend me some that solve exactly my problem.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.