diff --git a/sh/self.sh b/sh/self.sh index dfbe203..4118d64 100644 --- a/sh/self.sh +++ b/sh/self.sh @@ -5,7 +5,7 @@ rwx_doc() { local name="${1}" [ -n "${name}" ] || return local constant doc func line module - printf "%s\n" "${RWX_CODE}" | while IFS= read -r line; do + while IFS= read -r line; do case "${line}" in "#!"*) doc="" ;; "#↓"*) @@ -44,7 +44,9 @@ rwx_doc() { fi ;; esac - done + done <