Differing Features
The following table displays features that are different among the three shells.
|
bash |
ksh |
tcsh |
Meaning/action |
|
|
|
|
Prompt. |
|
|
|
|
Force redirection. |
|
|
Force append. | ||
|
|
|
|
Combine stdout and stderr. |
|
|
|
Combine stdout and stderr. | |
|
|
|
|
Substitute output of enclosed command. |
|
|
|
Substitute output of enclosed command. (Preferred form.) | |
|
|
|
|
Home directory. |
|
|
|
|
Variable assignment. |
|
|
|
|
Set environment variable. |
|
|
|
More than nine args can be referenced. | |
|
|
|
All args as separate words. | |
|
|
|
|
Number of arguments. |
|
|
|
|
Exit status. |
|
|
|
Last background Process ID. | |
|
|
|
Current options. | |
|
|
|
|
Read commands in file. |
|
|
|
|
Name x stands for y. |
|
|
|
|
Choose alternatives. |
|
|
|
|
Switch directories. |
|
|
|
Switch directories. | |
|
|
|
|
End a loop statement. |
|
|
|
|
End |
|
|
|
|
Exit with a status. |
|
|
|
|
Loop through values. |
|
|
|
|
Ignore |
|
|
|
|
Display ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access