Differing Features
- The following table defines differing features between the Bourne, Korn and C-Shell.
sh ksh csh Meaning/Action $ $ % Prompt >| >! Force redirecion >>! Force Append { } Expand elements in list $( ) Substitute output of enclosed command $HOME $HOME $home Home directory ~ ~ Home directory symbol var=value var=value set var=value Variable assignment export var export var=val export var=value Set environment variable ${nn} More than nine args can be referenced "$@" "$@" All args as seperate words $# $# $#argv Number of arguments $? $? $status Exit status $! $! % Background exit status $- $- Current options . file . file source file Read commands in file alias x=y alias x y Name x stands for y case case switch case Choose alternatives cd~- popd/pushd Switch directories done done end End a loop ststement esac esac endsw End case or switch for/do for/do foreach Loop through variables print -r glob Ignore echo escapes hash alias -t hashstat Display tracked aliases (hashed commands) hash cmds alias -t cmds rehash Remember command locations hash -r PATH=$PATH unhash Forget command locations
Next'��`�[email protected]'��`�