mawk/commands
This commit is contained in:
parent
933fb93907
commit
457d82fade
1 changed files with 4 additions and 4 deletions
|
@ -136,12 +136,12 @@ BEGIN {
|
||||||
reset()
|
reset()
|
||||||
}
|
}
|
||||||
} else if (action == "commands functions") {
|
} else if (action == "commands functions") {
|
||||||
if (match($0, re["command"], m)) {
|
if (match($0, re["command"])) {
|
||||||
append(m[1])
|
append(extract($0, "command"))
|
||||||
} else if (match($0, re["function"], m)) {
|
} else if (match($0, re["function"])) {
|
||||||
split(doc, array, "\n")
|
split(doc, array, "\n")
|
||||||
for (item in array) {
|
for (item in array) {
|
||||||
alias_eval(array[item], m[1], "function")
|
alias_eval(array[item], extract($0, "function"), "function")
|
||||||
}
|
}
|
||||||
reset()
|
reset()
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue