bash is an IDEs command line tool that is used to run commands from within a script. bash is the standard for running commands within a script.
This is the part where a lot of people ask me about bash. I have had my fair share of arguments about bash versus other scripts, but they’re completely irrelevant. It really is the standard and I would not be a professional programmer if I didn’t use it.
A couple of people have said that bash is a bad programming language for programming, particularly when you don’t understand the syntax. It’s easy to understand if you don’t understand, but it doesn’t do much for our modern design.
I would say that scripting languages are a bit like the “I’m gonna write a program and I’m going to write the program using the syntax of a language that I fully understand” thing. Scripting languages are much better than other languages, but not as good as programming languages.
I use bash for programming, but I can’t help but wonder if it’s the best programming language to use for bash scripting. I know this is a subjective statement, but I’m talking about the way that the language looks and how the computer parses it. I think it would be much better for scripting languages to just have a built-in parser that understands all the basic syntactical constructs, and let you write whatever you want.
This is something that is often a challenge when scripting languages are new. When a language is new, every other language it interacts with is likely to be new, and there are lots of things that happen that make it easier for a new language to make mistakes. But if you’re a power user, scripting languages are often very limited in what they can do, and having a built-in parser means that you don’t have to worry about bugs when you write code.
In Bash, I use the term “built-in” as an umbrella term for many different things. For example, the built-in, $ is often used to define variables, or you can use the “command” function. Most of the time the built-in is used to run a command, and it’s when you need to use it in a script that the “command” function is used.
You can use the built-in command function to execute a command. But what about the built-in bash command brew? For many people the command function in bash is not the first thing they think of when they hear the word brew, but that is because the command function in Bash is really just a very handy shortcut to a set of functions available in other languages.
All of these functions are used to create things like bash scripts, which are executed when you type the command, or when you hit the return key. For example, you can launch a brew command with brew. That command does three things: it opens a terminal, it lists all the installed beer apps, and it lists a few of the beers you have installed.