eval/oneline
Some checks failed
/ job (push) Has been cancelled

This commit is contained in:
Marc Beninca 2025-07-06 16:42:12 +02:00
parent 75487be90a
commit 9327161e72
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -195,8 +195,7 @@ rwx_parse_code() {
local line text
RWX_ALIASES="$(rwx_parse_aliases)"
while IFS= read -r line; do
text="s| = |() { |"
eval "$(echo "${line}" | sed "${text}") \"\${@}\"; }"
eval "$(echo "${line}" | sed "s| = |() { |") \"\${@}\"; }"
done <<EOF
${RWX_ALIASES}
EOF