3 ms·
I have always been wondering why don't we have shell program that don't do scripts -- no flow control and fancy macros, and separate program that run scripts --
by hzhou321 9y ago
I have always been wondering why don't we have shell program that don't do scripts -- no flow control and fancy macros, and separate program that run scripts -- no readline or job control (while pipes and redirects are simply treated as syntax)?
- geocar 9y agoWe tried that. It was called the C-shell. Most people would use it on the command line and write scripts in Bourne shell, but some people kept trying to write scripts in C-shell for some incredibly stupid reason, and so it got banned.
- darrenf 9y agoIndeed, I have vivid memories of reading the chapter in Unix Power Tools devoted to this very topic: https://docstore.mik.ua/orelly/unix2.1/upt/ch47_01.htm https://docstore.mik.ua/orelly/unix2.1/upt/ch47_01.htm
- hzhou321 9y agoGood to learn! I always thought C-shell was aimed at scripting part (due to the sound of "C"); I guess I missed the boat.