Explorar el Código

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 hace 10 años
padre
commit
1d6c469905
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      include/core.sh

+ 2
- 1
include/core.sh Ver fichero

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 )"