The distinct interpretation of the $(),${} between make and shell

原创 2012年03月30日 11:14:19

1)  In make $() = ${}

    To substitute a variable's value, write a dolar sign followed by the name of the variable in parentheses or braces:

    either '$(foo)' or '${foo}' is a valid reference to the variable foo

2) In shell: $() != ${}

     2.1)  The '$' character introduces parameter expansion,command substitution, or arithmetic expansion.The

             parameter name or symbol to be expanded may be enclosed in braces,which are optional but servo to

             protect the variable to be expanded from characters immediately following it which could be interpreted

             as part of the name

     2.2 ) Command substitution allows the output of a command to replace the command itself ,

            Command substitution occurs when a command is enclosed as follows:

            $(command)

            or

           `command`


版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

[文章摘要]Constructing Semantic Interpretation of Routine and Anomalous Mobility Behaviors from Big Data

文章:[文章摘要]Constructing Semantic Interpretation of Routine and Anomalous Mobility Behaviors from Big D...

绑定变量,between...and...,in,not in,通配符_和%,distinct

① 绑定变量& 2013-07-19_223256.jpg ② betwwen...and... 2013-07-19_223514.jpg ③ in 2013-07-19_223658.jpg ...

The Differences of Dietary Cultures Between China and the West

Abstract Since the entrance of 21st century, the cross-culturalcommunication has become the key fea...

The difference of Post-Secondary education between USA and China

1.About burden Amercian education from kindergarten to university, the burden is gradually increase...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)