For a long time, the C shell (csh) was the default shell in FreeBSD. We all know about the disadvantages of C shell which are listed here:
However, could you point out the positive aspects of using the C shell both as a shell and in scripts?
I don’t ask you to agree with me, but for myself personally, I suggest using the C shell as a shell and at the same time for writing relatively complex scripts (sets of commands with loops, arrays, etc.). And at the same time, completely abandon bash by completely removing it from the computer controlled by FreeBSD. In the case where using the C shell would *really* be undesirable for the reasons listed in the linked article, then we should use Python as a language that can certainly handle everything. In addition, I think that the Mojo language, which is already being developed currently, can replace Python even for system administration tasks and become a truly high-performance alternative to Python. Mojo is based on the LLVM library, just like FreeBSD. If this happens this way, then shell scripts will look completely archaic. But even in this case, the C shell will be useful for utilitarian tasks, because it is native to FreeBSD. Finally, what is archaic (csh) cannot become archaic.
Thus, in this situation, other shells are not so necessary, except in cases where there are legacy scripts that are simply not practical to rewrite.
However, could you point out the positive aspects of using the C shell both as a shell and in scripts?
I don’t ask you to agree with me, but for myself personally, I suggest using the C shell as a shell and at the same time for writing relatively complex scripts (sets of commands with loops, arrays, etc.). And at the same time, completely abandon bash by completely removing it from the computer controlled by FreeBSD. In the case where using the C shell would *really* be undesirable for the reasons listed in the linked article, then we should use Python as a language that can certainly handle everything. In addition, I think that the Mojo language, which is already being developed currently, can replace Python even for system administration tasks and become a truly high-performance alternative to Python. Mojo is based on the LLVM library, just like FreeBSD. If this happens this way, then shell scripts will look completely archaic. But even in this case, the C shell will be useful for utilitarian tasks, because it is native to FreeBSD. Finally, what is archaic (csh) cannot become archaic.
Thus, in this situation, other shells are not so necessary, except in cases where there are legacy scripts that are simply not practical to rewrite.