diff --git a/SC2317.md b/SC2317.md index 818a176..92afb80 100644 --- a/SC2317.md +++ b/SC2317.md @@ -69,7 +69,7 @@ Defined functions are assumed to be reachable when the script ends (not exits) s ### More Problematic Code -You have defined two functions in the same file you are sourcing whose names are the same but defined differently within their bodies. Then you will see the same error message albeit it will be mysterious at first. However, when invoking ShellCheck! on the ex command line I noticed that the whole definition of the **earlier seen** definition was ignored. Indeed every message was that every line of the earlier seen definition was deemed unreachable. +You have defined two functions in the same file you are sourcing whose names are the same but defined differently within their bodies. Then shellcheck will state that every line of the body of the earlier seen function definition will be unreachable which is how bash would operate when sourcing the file. It **unclear** what shellcheck would output if the earlier definition appeared in a difference file that was seen first. Apparently doing a quick test. It does **NOT** notice.