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