... 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.
... 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.