linux – unix shell中echo和@echo的区别

linux – unix shell中echo和@echo的区别,第1张

概述在unix世界中,“echo”和“@echo”有什么区别? 我甚至不能谷歌特殊字符. 例如, 使用here 那是一个 Makefile-specific thing;它与shell脚本无关. 以@开头的食谱不会回显命令.也就是说,使用Makefile foo: echo foo 你得到 $make foo # <-- this is meant to be the comma 在unix世界中,“echo”和“@echo”有什么区别?

我甚至不能谷歌特殊字符.

例如,
使用@L_502_0@

解决方法 那是一个 Makefile-specific thing;它与shell脚本无关.

以@开头的食谱不会回显命令.也就是说,使用Makefile

foo:    echo foo

你得到

$make foo        # <-- this is meant to be the command you enter in the shellecho foofoo

而使用Makefile

foo:    @echo foo

它是

$make foofoo
总结

以上是内存溢出为你收集整理的linux – unix shell中echo和@echo的区别全部内容,希望文章能够帮你解决linux – unix shell中echo和@echo的区别所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1047397.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存