File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ That's not a good idea. Use the following code instead
154154 # do something
155155
156156 if [[ $? -ge 1 ]]; then
157- _error "$FUNCNAME has some internal error"
157+ _error "${ FUNCNAME[0]} has some internal error"
158158 fi
159159 }
160160
@@ -170,7 +170,7 @@ save the variable to a local variable. For example,
170170
171171 _do_something_critical
172172 local _ret="$?"
173- # from now, $? is zero, because the latest statement (assignment)
173+ # from now on , $? is zero, because the latest statement (assignment)
174174 # (always) returns zero.
175175
176176 _do_something_terrible
@@ -222,7 +222,7 @@ value, don't trust it twice.
222222It's recommended to emphasize the needs of your variables before your
223223script actually starts. In the following example, the script just stops
224224when ` SOME_VARIABLE ` or ` OTHER_VARIABLE ` is not defined; these checks
225- are done just before any execution of the main routine is processed .
225+ are done just before any execution of the main routine(s) .
226226
227227```
228228: a lot of method definitions
You can’t perform that action at this time.
0 commit comments