File tree Expand file tree Collapse file tree 2 files changed +23
-23
lines changed Expand file tree Collapse file tree 2 files changed +23
-23
lines changed Original file line number Diff line number Diff line change @@ -410,8 +410,8 @@ Provides a list of helper functions.
410
410
** pre** that runs before the builtin and ** post** that runs after the builtin
411
411
412
412
413
- - ``` decorate_function fn pre post ``` : decorates the function ** fn** with
414
- ** pre** that runs before the function and ** post** that runs after the function
413
+ <!-- - ```decorate_function fn pre post```: decorates the function **fn** with -->
414
+ <!-- **pre** that runs before the function and **post** that runs after the function -->
415
415
416
416
- ``` strlist_add name value ``` : appends ** value** to semi-column separated string list
417
417
hold by variable ** name**
Original file line number Diff line number Diff line change 45
45
eval " ${l_data} "
46
46
}
47
47
48
- function decorate_function() {
49
- local p_fn=$1 ; shift
50
- local p_pre=$1 ; shift
51
- local p_post=$1 ; shift
48
+ # function decorate_function() {
49
+ # local p_fn=$1; shift
50
+ # local p_pre=$1; shift
51
+ # local p_post=$1; shift
52
52
53
- if [ ! -z " ${p_pre} " ]; then
54
- p_pre=" ${p_pre} \"\$ @\" ;"
55
- fi
56
- if [ ! -z " ${p_post} " ]; then
57
- p_post=" ${p_post} \"\$ @\" ;"
58
- fi
53
+ # if [ ! -z "${p_pre}" ]; then
54
+ # p_pre="${p_pre} \"\$@\";"
55
+ # fi
56
+ # if [ ! -z "${p_post}" ]; then
57
+ # p_post="${p_post} \"\$@\";"
58
+ # fi
59
59
60
- eval "
61
- _inner_$( typeset -f " ${p_fn} " )
62
- ${p_fn} " ' () {
63
- ' " ${p_pre} " '
64
- _inner_' " ${p_fn} " ' "$@"
65
- local ret=$?
66
- ' " ${p_post} " '
67
- return "$ret"
68
- }'
60
+ # eval "
61
+ # _inner_$(typeset -f "${p_fn}")
62
+ # ${p_fn}"'() {
63
+ # '"${p_pre}"'
64
+ # _inner_'"${p_fn}"' "$@"
65
+ # local ret=$?
66
+ # '"${p_post}"'
67
+ # return "$ret"
68
+ # }'
69
69
70
- export ${p_fn} _decorates=" _${l_guid} _${p_fn} "
71
- }
70
+ # export ${p_fn}_decorates="_${l_guid}_${p_fn}"
71
+ # }
You can’t perform that action at this time.
0 commit comments