diff --git a/sh/core/code.awk b/sh/core/code.awk index d9829c1..daa8001 100644 --- a/sh/core/code.awk +++ b/sh/core/code.awk @@ -206,10 +206,10 @@ function parse(string, command) { # alias } else if (match(string, re["alias"])) { current_match = "alias" - alias = strip_first(string, "#=") - ids_put(current_match, alias) - aliases[alias] = "" - doc_append("= " alias) + current_alias = strip_first(string, "#=") + ids_put(current_match, current_alias) + aliases[current_alias] = "" + doc_append("= " current_alias) # command } else if (match(string, re["command"])) { @@ -421,7 +421,7 @@ if (action == "doc") { # alias } else if (current_match == "alias") { - alias = "" + current_alias = "" # command } else if (current_match == "command") {