Skip to contentSkip to conversation

master - display: yes no prompt improvement

PATCH Zdenek Kabelac 1 participant 1 message Jun 10, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=35612bd27c203774948c84005c9fb9237746c34a
Commit:        35612bd27c203774948c84005c9fb9237746c34a
Parent:        cfdc87b62331875c2f10cca2c41f486d40b2a67c
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed Jun 8 20:52:14 2016 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Jun 10 16:00:31 2016 +0200

display: yes no prompt improvement

Original code missed to catch all apperances of SIGINT. Also enhance logging when running in shell without tty. Accept this regex as valid input:
'^[ ^t]*([Yy]([Ee]([Ss]|)|)|[Nn]([Oo]|))[ ^t]*$'

---
 WHATS_NEW             |    1 +
 lib/display/display.c |  100 +++++++++++++++++++++++++++++++++++++------------
 2 files changed, 77 insertions(+), 24 deletions(-)
WHATS_NEW +1 -0
index 0afd527..0f8ebda 100644
@@ -1,5 +1,6 @@
 Version 2.02.156 - 
 ================================
+  Yes/No prompt accepts '^[ ^t]*([Yy]([Ee]([Ss]|)|)|[Nn]([Oo]|))[ ^t]*$'.
   If available, also collect output from lsblk command when running lvmdump -s.
   Fix regression in blkdeactivate causing dm and md devices to be skipped. (2.02.155)
 
lib/display/display.c +76 -24

126 lines not on this page · raw message