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 ... |
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.