Linux Commands Examples

A great documentation place for Linux commands

debconf-escape

helper when working with debconf’s escape capability

Synopsis

 debconf-escape -e < unescaped-text
 debconf-escape -u < escaped-text

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
"$(printf %s "${ret%$newline}" | debconf-escape -e)"
db_capb
db_capb escape
db_get ubiquity/partman-confirm
"$(printf %s "$RET" | debconf-escape -e)"
db_capb
db_input high ubiquity/summary || true
db_go
exit 0

description

When debconf has the ’escape’ capability set, it will expect commands you send it to have backslashes and newlines escaped (as "\\" and "\n" respectively) and will in turn escape backslashes and newlines in its replies. This can be used, for example, to substitute multi-line strings into templates, or to get multi-line extended descriptions reliably using "METAGET".


see also

debconf-devel (available in the debconf-doc package)


author

Colin Watson <cjwatson[:at:]debian[:dot:]org>

How can this site be more helpful to YOU ?


give  feedback