|
|
Shell Traps - Shell Scripting
|
Views : 116
|
|
Tagged in : Shell Scripting
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
Shell Traps
Sharp shell programmers should take note of the following:
* The backtick operator does variable interpretation without regard to the presence of single quotes in the command.
* The backtick operator does no translation of the return value, unlike csh.
* Shells (especially csh) do several levels of substitution on each command line. Perl does substitution only in certain constructs such as double quotes, backticks, angle brackets and search patterns.
* Shells interpret scripts a little bit at a time. Perl compiles the whole program before executing it.
* The arguments are available via `@ARGV', not `$1', `$2', etc.
* The environment is not automatically made available as variables. |
|
By Geethalakshmi, On - 2010-09-17 |
|
|
|