DEBCONF-ESCAPE(1)

๐Ÿ’– NAME ๐Ÿ’–

debconf-escape โ€” the lil helper bestie you call when you're working with debconf's escape capability ๐Ÿซถ


โœจ SYNOPSIS โœจ

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

Two moods, two flags: -e gets fed unescaped text on stdin, -u gets fed escaped text on stdin. Slurp it in, get the other flavour out ๐Ÿ’…


๐ŸŒธ DESCRIPTION ๐ŸŒธ

okay so plot twist: when debconf has the 'escape' capability set, it fully expects the commands you send it to have backslashes and newlines escaped โ€” that's "\\" for the backslash and "\n" for the newline, respectively โœจ

And it's giving mutual, bestie โ€” debconf turns around and escapes backslashes and newlines in its replies too ๐Ÿ”๐Ÿ’–

What's that actually good for, you ask? (iconic question, ty for asking ๐ŸŽ€)

  • subbing multi-line strings into templates, literally so easy
  • getting multi-line extended descriptions reliably using "METAGET" ๐Ÿ”ฅ

no cap, that's the whole vibe. the escaping just keeps your newlines from getting ate ๐Ÿ’€


๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

  • debconf-devel(7) โ€” which is available in the debconf-doc package ๐Ÿ‘‘

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Colin Watson <cjwatson@debian.org> โ€” thank you for your service, we are obsessed ๐Ÿซถ๐ŸŒธ


mwah ๐Ÿ’œ this page is from the Debconf docs, dated 2026-02-16 โ€” go forth and escape responsibly, bestie, ily ๐ŸŽ€โœจ

๐Ÿ“ฆ where this page comes from