awk/functions
This commit is contained in:
parent
4151928013
commit
fe98428b6c
2 changed files with 8 additions and 2 deletions
|
@ -50,6 +50,10 @@ BEGIN {
|
||||||
if (match($0, RE_ALIAS, m)) {
|
if (match($0, RE_ALIAS, m)) {
|
||||||
print m[1]
|
print m[1]
|
||||||
}
|
}
|
||||||
|
} else if (action == "functions") {
|
||||||
|
if (match($0, RE_FUNCTION, m)) {
|
||||||
|
print m[1]
|
||||||
|
}
|
||||||
} else if (action == "aliases functions") {
|
} else if (action == "aliases functions") {
|
||||||
if (match($0, RE_ALIAS, m)) {
|
if (match($0, RE_ALIAS, m)) {
|
||||||
append(m[1])
|
append(m[1])
|
||||||
|
|
|
@ -238,8 +238,10 @@ rwx_parse_constants() {
|
||||||
sed --silent "s|${RWX_REGEX_TARGET_CONSTANT}|\\1|p"
|
sed --silent "s|${RWX_REGEX_TARGET_CONSTANT}|\\1|p"
|
||||||
}
|
}
|
||||||
rwx_parse_functions() {
|
rwx_parse_functions() {
|
||||||
printf "%s" "${_rwx_code}" |
|
echo "${_rwx_code}" |
|
||||||
sed --silent "s|${RWX_REGEX_TARGET_FUNCTION}|\\1|p"
|
awk \
|
||||||
|
--assign action="functions" \
|
||||||
|
"$(rwx_code_awk)"
|
||||||
}
|
}
|
||||||
rwx_parse_variables() {
|
rwx_parse_variables() {
|
||||||
printf "%s" "${_rwx_code}" |
|
printf "%s" "${_rwx_code}" |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue