You are on page 1of 1

Bourne shell C shell

Bourne shell scripts are usually Algol-66 look- C shell scripts look more like C program
alikes constructs.

The Bourne shell is slower, but starts executing The C shell is slower to start execution (as it
immediately. looks in the .cshrc file EVERY TIME it is
called) and produces a hash table of all paths
for faster execution.

BASH evidently has more features BASH evidently has less features than bash

Default user prompt is with $ Default user prompt is with %

Home directory in Bourne shell is $HOME Home directory in c shell is $home

Variable assignment with VAR=value Variable assignment is with set var=value

Read commands in source file or . file Read commands in source file

End a loop statement with done End a loop statement with end

Loop through variables for/do Loop through variables foreach

Set resource limits with ulimit Set resource limits with limit

Print working directory is pwd Print working directory is dirs

You might also like