admin管理员组文章数量:1609966
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`
本文标签: DISTINCTinterpretationShell
版权声明:本文标题:The distinct interpretation of the $(),${} between make and shell 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dianzi/1728576905a1164580.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论