diff --git a/sh/main.sh b/sh/main.sh index 75b1815..94908be 100755 --- a/sh/main.sh +++ b/sh/main.sh @@ -192,10 +192,13 @@ _rwx_code_variables="" rwx_parse_code() { # parse aliases - local line + local line text RWX_ALIASES="$(rwx_parse_aliases)" while IFS= read -r line; do - eval "${line/ = /() { } \"\${@}\"; }" + text="s| = |() { |" + text="$(echo "${line}" | sed "${text}")" + text="${text} \"\${@}\"; }" + eval "${text}" done <