−ifs
This commit is contained in:
parent
651fafe418
commit
80632463f6
1 changed files with 6 additions and 6 deletions
12
sh/main.sh
12
sh/main.sh
|
@ -187,22 +187,22 @@ rwx_parse() {
|
|||
local func="${ws}(${ws})${ws}{.*"
|
||||
local id="[_a-zA-Z][_a-z0-9A-Z]*"
|
||||
local line
|
||||
rwx_ifs_set
|
||||
RWX_CONSTANTS=""
|
||||
for line in $(echo "${RWX_CODE}" |
|
||||
printf "%s\n" "${RWX_CODE}" |
|
||||
grep "${start}${constant}${setting}" |
|
||||
sed "s|${start}\\(${constant}\\)${setting}|\\1|"); do
|
||||
sed "s|${start}\\(${constant}\\)${setting}|\\1|" |
|
||||
while IFS= read -r line; do
|
||||
RWX_CONSTANTS="${RWX_CONSTANTS}${line}
|
||||
"
|
||||
done
|
||||
RWX_FUNCTIONS=""
|
||||
for line in $(echo "${RWX_CODE}" |
|
||||
printf "%s\n" "${RWX_CODE}" |
|
||||
grep "${start}${id}${func}" |
|
||||
sed "s|${start}\\(${id}\\)${func}|\\1|"); do
|
||||
sed "s|${start}\\(${id}\\)${func}|\\1|" |
|
||||
while IFS= read -r line; do
|
||||
RWX_FUNCTIONS="${RWX_FUNCTIONS}${line}
|
||||
"
|
||||
done
|
||||
rwx_ifs_unset
|
||||
}
|
||||
|
||||
# ╭──────┬─────╮
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue