Quoting and eval in Bash

Posted on 2014-01-20 19:15:24 +0900 in Linux Bash

Quoting and eval in Bash

Quoting

Quoting in Bash actually skips some steps in the previous post:

  1. Sinle quotes('') bypass through the Step 10. Everything inside the Single quotes remains untouched. There can’t be single quotes inside single quotes, even if bashslashes are used.

  2. Double quotes("") bypass Step 1 through 4, plus steps 9 and 10. Single quotes inside double quotes has no effect. But doulbe quotes allow for parameter substitution, command substitution and arithmetic expression evaluation. A double quote can be inside another double quote by a backslash.

Eval

Eval lets the precess being precessed once more. It tells the shell to take the eval’s arguments and run them through the command-line precessing steps all over again.

----------------------------------- 本文内容遵从CC版权协议转载请注明出自kamelzcs -----------------------------------
«  | Bash Command Line Processing »

Hide Comments

comments powered by Disqus