C Shell Scripting/syntax

< C Shell Scripting

Comparison with Bourne shell

Features

C Shell has it Bourne doesn't.
Bourne has it C Shell doesn't


Syntax differences

# csh 
: sh
set a = b
a = b
if ( a < b ) then
if [ a -lt b ]


Bourne has more advanced command substitution syntax for embedding. (Bourne Shell Scripting/Substitution)

 $( date )

vs

`date`


This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.