diff options
author | Robert Peichaer <rpe@cvs.openbsd.org> | 2013-11-25 21:51:49 +0000 |
---|---|---|
committer | Robert Peichaer <rpe@cvs.openbsd.org> | 2013-11-25 21:51:49 +0000 |
commit | 10f1362e7c884e0ec6bd6de46df0d116959ddda2 (patch) | |
tree | 1eb720c82b3012839777848402336c009096a901 /games/tetris | |
parent | 5e1b062097d3dffd0793275608336f6cb95c9d28 (diff) |
Rework _autorespond()
- strip leading/trailing blanks from question
- strip leading blanks from answer
- compare questions case insensitive
- ignore empty and comment lines and lines without =
- treat empty/missing/multiple answers as error and exit
- ensure, that $RESPONSEFILE is actually an existing file.
- unset IFS to preserve leading/trailing blanks on read.
- use read -r, because we don't support line continuation in answers.
- simplify the "_i=0 but we have a default answer" case a bit.
lots of feedback from halex@
ok deraadt@ krw@
Diffstat (limited to 'games/tetris')
0 files changed, 0 insertions, 0 deletions