CSCB09H3 Lecture Notes - Lecture 4: Bourne Shell, C Shell, Shell Script

115 views7 pages
22 Mar 2015
School
Course

Document Summary

Shell programming: 1) the program prints the $" or %" prompt, 2) then inputs a command from you and, 3) executes it. It"s a userland (non-kernal) program; thus, as is always the case for things not in the kernel, the user can substitute it. There is a token which you introduce in the command line and which signals end-of-file in the text. Csh is more user-friendly , with more user-friendly job control, aliases, etc. But these same attributes are often what makes it a poorer programming language. You don"t want user-friendliness popping up when you"re trying to execute a program which already says what it means. So many people use csh for their login shell but sh for all shell script programming: gnu project wrote their version of the bourne shell, called bash . Bash has all the user-friendly stuff, aliases, etc; but it"s syntax is that of sh, not csh.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents