Advanced Bash-Scripting Guide在示例中大量使用多行注释,形式如下:
我是否应该(尝试)遵循我自己的脚本中的“bash-scripting comment ttiquette”?
echo ls -l | sh # Passes the output of "echo ls -l" to the shell,#+ with the same result as a simple "ls -l".@H_502_3@(在管道符号的说明中找到).其他多行注释如下所示:
#!/bin/bash # rpm-check.sh # Queries an rpm file for description,listing,#+ and whether it can be installed. # Saves output to a file. # # This script illustrates using a code block.@H_502_3@(链接页面中的示例3.2). @H_502_3@使用#的ratonale是什么?一些多行评论似乎表明评论在下一行继续,但其他评论则没有.
我是否应该(尝试)遵循我自己的脚本中的“bash-scripting comment ttiquette”?