summaryrefslogtreecommitdiff
path: root/usr.sbin/sysmerge
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2013-11-25 21:51:49 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2013-11-25 21:51:49 +0000
commit10f1362e7c884e0ec6bd6de46df0d116959ddda2 (patch)
tree1eb720c82b3012839777848402336c009096a901 /usr.sbin/sysmerge
parent5e1b062097d3dffd0793275608336f6cb95c9d28 (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 'usr.sbin/sysmerge')
0 files changed, 0 insertions, 0 deletions