Answer the question
In order to leave comments, you need to log in
Why is bash used for shell scripting and not a more modern programming language?
As far as I understand, shells used to be used as primitive high-level languages. Now we have Perl, Python, nodejs, php...
Then what's the point in bash (except for support for legacy scripts, of course), if there is a sys for everything in the axes. calls, and in programming languages - the corresponding wrappers over these systems. challenges.
Answer the question
In order to leave comments, you need to log in
As far as I understand, shells used to be used as primitive high-level languages. Now we have Perl, Python, nodejs, php...
Try to work interactively yourself and, I hope, everything will immediately become clear:
sudo useradd -m perluser -s /usr/bin/perl && sudo -u perluser -i
sudo useradd -m phpuser -s /usr/bin/php && sudo -u phpuser -i
You can also hammer nails with a microscope, but it’s still more convenient with a hammer ...
bash is needed for interactive interaction with the system without a graphical interface - like cmd or ps in Windows. Not to mention that bash can be used as a scripting language. If you don't know why you need bash, maybe it's pointless to raise this question?
Here's that rare occasion when you need to remember that Linux is GNU/Linux.
Shell + GNU is, in fact, a high-level LANGUAGE for working with the OS.
Much better adapted to this than any of the universal ones.
You cannot put an equal sign between the command shell of the operating system and the programming language interpreter working on the principle of REPL (Read Evelute Print Loop) ...
In general, there was a python, but the point is that "you can't just take it and ..." Well, I remember that someone did it with a python, but I don't even remember the name. Because why should I? I know bash. A young man will come to me and I will show him what I can do. And he will eventually learn Bash too. Well, somehow this has been going on for many years.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question