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 中使用 `$?` 去获取函数的返回值。 ### 函数技巧