mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated _Footer (markdown)
@@ -1 +1,5 @@
|
||||
found this page helpful, drop a star :)
|
||||
The SC2317 error message gets invoked if one has two functions definitions with the same name. By bash conventions the later definition
|
||||
gets used which implies the earlier (in the file where it's defined) gets ignored, i.e., "Command appears to be unreachable" is seen
|
||||
in the output of shellcheck.
|
||||
|
||||
Perhaps the message should say what I have observed, i.e., "Hey dude, you have defined two functions with same name in the file. Bash ain't going use the first definition on Lines A to B". Perhaps a new error code is inorder?
|
Reference in New Issue
Block a user