aliases
All checks were successful
/ job (push) Successful in 4m57s

This commit is contained in:
Marc Beninca 2025-07-06 07:53:27 +02:00
parent 785b52f4b3
commit 49b9fbe8c3
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ BEGIN {
} else if (match($0, RE_FUNCTION, m)) { } else if (match($0, RE_FUNCTION, m)) {
n = split(doc, array, "\n") n = split(doc, array, "\n")
for (i = 1; i<= n; i++) { for (i = 1; i<= n; i++) {
print array[i] "() { " m[1] " \"${@}\" ; }" print array[i] " = " m[1]
} }
reset() reset()
} else { } else {

View file

@ -189,7 +189,7 @@ rwx_parse_code() {
local line local line
RWX_ALIASES="$(rwx_parse_aliases)" RWX_ALIASES="$(rwx_parse_aliases)"
while IFS= read -r line; do while IFS= read -r line; do
eval "${line}" eval "${line/ = /() { } \"\${@}\"; }"
done <<EOF done <<EOF
${RWX_ALIASES} ${RWX_ALIASES}
EOF EOF