Browse Source

Handle the pretty-printer import correctly

Use the meta-library and handle that oputside __echo (i.e. do not try to
import it kajillion times).
Alois Mahdal 11 years ago
parent
commit
1d6c469905
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      include/core.sh

+ 2
- 1
include/core.sh View File

1
 #!/bin/bash
1
 #!/bin/bash
2
 
2
 
3
+ffoo import mkpretty
4
+
3
 
5
 
4
 ##--------------------##
6
 ##--------------------##
5
 ## PRINTING FRONT-END ##
7
 ## PRINTING FRONT-END ##
134
     #   -u patt [patt...] convert each patt to usage pattern
136
     #   -u patt [patt...] convert each patt to usage pattern
135
     #   -v var [var...] show contents of each var
137
     #   -v var [var...] show contents of each var
136
     #
138
     #
137
-    ffoo import mkpretty_${FFOO_MKPRETTY}
138
     local frontend  # who (of core.sh) was called (=> prettyprinter choice)
139
     local frontend  # who (of core.sh) was called (=> prettyprinter choice)
139
     local caller    # which user's function (or script) called it
140
     local caller    # which user's function (or script) called it
140
     frontend="$(__cut_stack '^__echo' | head -1 )"
141
     frontend="$(__cut_stack '^__echo' | head -1 )"