News for hackers. Stuff that matters.
Re:It's time to get the Posix elephant off our necks by msla on Thursday February 23, 2023 @03:06AM (#34908082)
The problem with making a shell more like a "real" interpreter REPL is the purpose of a shell: Running arbitrary programs not known to the author of the shell, such that any unknown word in a shell script is probably the name of a program as opposed to a misspelled reserved word or variable name. Those programs having arbitrary command-line arguments and having to operate on files with arbitrary names is another complexity.
Re:It's time to get the Posix elephant off our necks by pasc1878 on Thursday February 23, 2023 @04:20AM (#34908522)
It has been done. See xonsh a python shell which manages the distinction you mention.

Also see scsh and rash for scheme

Fish for non posix but sane syntax

Re:It's time to get the Posix elephant off our necks by actionfromafar on Thursday February 23, 2023 @04:42AM (#34908642)
It's interesting to see how so many things grow into each other. A shell is what you say, but there are many efforts to change that. Bash has its magic autocomplete which knows about options of many, many programs. Powershell has an object-model with knowledge of many of its commands.