This is the first question in UNIX:I was started shell script from 2 days before.But I have a conflict: is a shell script a special programming language for a specific shell??
Is a shell script is a programming Language
linux;shell script;solaris
If you know of any command, say, ls, you type it, and then hit return, the shell will know where that program (ls) is, invoke it, and show you the result. This is the non-script shell usage.But, if you order a couple of such commands in a sequence, say A, B, C, D, and then put it (the sequence) in an executable file, you've got a program. The program has a name and location, so it can be referenced, and invoked; it has code, so it can be executed, one command at a time, by the CPU.(The program is not compiled - like, for example, C source would have been - and this makes it a script. But it is a program nonetheless.)That is, in some aspect, already at this point you are programming, because you are instructing the computer what to do.Furthermore, you are, again at a very basic level, also using a programming language, because you can't just type anything (and expect it to work); at the same time, whatever you type you'll get activity from the computer that corresponds exactly to what you wrote.There are rules how you should say things, and there are rules how the computer will react to those things.That said, with programming, you typically associate somewhat more expressive power than just piling commands on top of each other. At the very least, you'd like branching (if ... then ... else), iteration (loops: while, for, etc.), and probably some other things as well. But that's OK as the scripting languages have those things and more.The shells have different languages, yes, but some may overlap to a great extent because of convention (why change a good way to say something?), or to be compatible with earlier versions (or some standard).