From 49b9fbe8c3fdc7b3f93ff3e83a98c43805a0d607 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 6 Jul 2025 07:53:27 +0200 Subject: [PATCH] aliases --- sh/main.awk | 2 +- sh/main.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sh/main.awk b/sh/main.awk index 2bcc4d5..998644d 100644 --- a/sh/main.awk +++ b/sh/main.awk @@ -47,7 +47,7 @@ BEGIN { } else if (match($0, RE_FUNCTION, m)) { n = split(doc, array, "\n") for (i = 1; i<= n; i++) { - print array[i] "() { " m[1] " \"${@}\" ; }" + print array[i] " = " m[1] } reset() } else { diff --git a/sh/main.sh b/sh/main.sh index f2d7a7a..d26159a 100755 --- a/sh/main.sh +++ b/sh/main.sh @@ -189,7 +189,7 @@ rwx_parse_code() { local line RWX_ALIASES="$(rwx_parse_aliases)" while IFS= read -r line; do - eval "${line}" + eval "${line/ = /() { } \"\${@}\"; }" done <