From 4ed1026eccf2cafe3149037b0c16546607493eab Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 4 Aug 2025 11:43:12 +0200 Subject: [PATCH] current/alias --- sh/core/code.awk | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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") {