This article explains what the process of a Linux command is going through when it executes. And the approximate sequence of these processes.1.1 Shell parsing command lineThe approximate operation of the shell when reading and executing commands is
Due to work needs, it took some time to study the two built-in special commands of eval and exec. Because not many are used, it is a bit obscure ..
1. Eval
This command is a built-in command in bashshell, which is a little more difficult than other
Eval
Converts a value into a string.
Syntax: void eval (string code_str);
return value: None
Types of functions: Data processing
Content Description
This function can be used to substitute the value of a variable in a string, usually on data that
Eval
Eval performs a two-pass scan of the following commands, executes this command if the command is a normal command after the first scan, and guarantees the semantics of the indirect reference if the command contains an indirect reference to the
Easy to master the eval () PHP function application skills. Syntax: voideval (stringcode_str); return value: no function type: data processing PHP function eval () content description PHP function eval () can be substituted into the variable value
1. Eval command-linewhere command- line is a plain command that is typed on the terminal. But when you put it in front of it, Eval The result is that the shell scan it two times before executing the command line. such as:Pipe= "|"Eval ls $pipe wc-l
1. Eval command-line whichCommand- Lineis a normal command line typed on the terminal. But when you put it in front of it, EvalThe result is that the shellscan it two times before executing the command line. such as: Pipe= "|" Eval ls $pipe wc-l
Eval function introduction and PHP one-sentence Trojan analysis Hello everyone, I am Carol, and my QQ is: 906871417 I: eval function 1. eval () function calculates the string according to PHP code. 2. the string must be a valid PHP code and must end
Eval
Converts a value into a string.
Syntax: void eval (string code_str);
return value: None
Function type: Data processing
Content Description
This function can substitute the value of a variable in a string, and is typically used to manipulate
Syntax: void eval (string code_str);
return value: None
Function type: Data processing
php function eval () content description
The PHP function eval () converts the value of a variable in a string, usually on the data used to process the database.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.