Comment 19 for bug 16953

Revision history for this message
Daniel Hartwig (wigs) wrote :

... or see apt-get's "YnPrompt" for an alternate (and very succinct) solution using nl_langinfo(YESEXPR)

FYI the english version of this looks is "^[yY]", so matching any string beginning with 'y'.

This is probably the preferred way to go since it would match apt-gets behaviour.