| iMatix home page
| Libero home page | Libero documentation
| << | < | > | >>
Libero Libero
Version 2.32

 

The UNIX C Shell Language

Overview

What Is C Shell?
The C shell (/bin/csh) is a UNIX shell 'for C programmers'.
Portability
The C shell is very standard across UNIX boxes, as far as I know.
Pros and Cons
Pros: standard. Your scripts will run on most if not all UNIX boxes. Looks a bit like C. Cons: limited and out-dated. No functions. Looks a bit like C.
How To Get It
Should be part of your UNIX system.

Working With The UNIX C Shell

Example of code

Code fragments:

#################   MODULE FUNCTION NAME   #################

module_function_name: #
    return                      # All modules end in 'return'

private_function_name:          # Actually, not possible
    set the_next_event=$ok_event
    raise_exception $error_event

The C shell has no functions (unless I missed something), so I use labelled blocks of code. Each such block must end with 'return'. The schema defines this alias to do a goto back to the dialog engine code. Frankly, I can't understand who would write or use this shell. Get Perl, and use that instead. Flames welcome. Nuff sed.

See also: Note on UNIX shells.


| << | < | > | >>
| Libero's Languages | The Awk Language | The C Language | The C++ Language | The COBOL Language | The GNU Borne-Again Shell Language | The Java Language | The Microsoft Setup Basic Language | The MS Visual Basic Language | The Perl Language | The Rexx Language | The UNIX C Shell Language | The UNIX Bourne Shell Language | The UNIX Korn Shell Language | The 80x86 Assembler Language
iMatix
Copyright © 1996-97 iMatix