From 1c22f682e50836127eed70ff39abb41216f9bade Mon Sep 17 00:00:00 2001 From: "Xingyu.Wang" Date: Mon, 27 Aug 2018 11:54:06 +0800 Subject: [PATCH] PUB:20180819 How to define and use functions in Linux Shell Script.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @LuuMing 恭喜你完成了第一篇翻译,本文首发地址: https://linux.cn/article-9954-1.html ,您的 LCTT 专页地址: https://linux.cn/lctt/LuuMing --- ...9 How to define and use functions in Linux Shell Script.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename {translated/tech => published}/20180819 How to define and use functions in Linux Shell Script.md (98%) diff --git a/translated/tech/20180819 How to define and use functions in Linux Shell Script.md b/published/20180819 How to define and use functions in Linux Shell Script.md similarity index 98% rename from translated/tech/20180819 How to define and use functions in Linux Shell Script.md rename to published/20180819 How to define and use functions in Linux Shell Script.md index 1c800018fa..daa4547134 100644 --- a/translated/tech/20180819 How to define and use functions in Linux Shell Script.md +++ b/published/20180819 How to define and use functions in Linux Shell Script.md @@ -106,7 +106,7 @@ function func_return_value { } ``` -上面的函数向调用者返回 10。让我们执行这个函数: +上面的函数向调用者返回 `10`。让我们执行这个函数: ``` $ func_return_value @@ -119,7 +119,7 @@ $ echo "Value returned by function is: $?" Value returned by function is: 10 ``` -**提示**:在 Bash 中使用 `$?` 去获取函数的返回值 +**提示**:在 Bash 中使用 `$?` 去获取函数的返回值。 ### 函数技巧