What is the purpose of running a command with
eval?What kinds of commands can
evalrun? I find it can run builtin command, external executable command, pipeline, script. Can it run all kinds of commands which can be run in a shell directly?Compare running a command directly in a shell and indirectly via
eval. Is the difference only in that withevalthe command will be parsed twice instead of just once?Compare running a command via
evaland viacommand. Assume that the command can be run by both. What differences are between the two ways?
-
link to unix.stackexchange.com/questions/278427/…Tim– Tim2016-04-22 22:54:13 +00:00Commented Apr 22, 2016 at 22:54
Add a comment
|
1 Answer
After the Command-line has been expanded:
eval sends back the arguments to the first step of "Command-Line Processing".
All steps of Command-Line Processing are presented in this page.