2

Edit: In the linked duplicate question, it's answered that shell = command line interepreter. Tanenbaum says it's not so. Hence the linked question doesn't solve my problem: why does Tanenbaum say so and what kind of "shell" does he imply?

Reading Andrew S. Tanenbaum's "modern Operating Systems", 3rd ed., on page 10, under 1.2.2, I see the following:

These primitive control cards were the forerunners of the modern shells and command-line interpreters.

I've been using Linux daily for years, and am familiar with the concept of a command line interpreter, i.e. Bash, Sh, Tcsh, Zsh, Csh. Now, I've always been sure that "shell" equals "Bash" equals "command line interpreter". Also, I understand that the commands I enter are ran and the results returned to me by a concrete executable, that belongs to the list above. However, Tanenbaum lists these as separate categories.

Thus, the question: what exactly is a "shell", how is it different from a "command line interpreter", or maybe it's only in the context of the book that these two concepts differ? Maybe it's the GUI shell that's being mentioned here?

2 Answers2

2

This is quite broad.

Shell was interface between user and unix kernel.

In the old days, shell would be similar to CLI, that is sh,csh,tcsh were CLI.

Nowdays with Graphic User Interface (children of X-window, apple's finder, amiga's workbench) you can run your host without knoning about ls, hence in a way GUIs can also be called "shell".

However bash and friend are in CLI and shell familly, whereas Gnome, KDE and all are in GUI familly.

Jeff Schaller
  • 67,283
  • 35
  • 116
  • 255
Archemar
  • 31,554
1

I also do not see that Tanenbaum claimed anything like that. For example, different version at http://odi-tele.com/mirrors/tanenbaum/tanenbaum/Operating-System-Extended-Machine.html has this text instead:

These primitive control cards were the forerunners of modern job control languages and command interpreters.

But I do not know if that is rev.4 (guess) or some older, but it looks like it seemed confusing, and so was changed.

Matija Nalis
  • 3,111
  • 1
  • 14
  • 27