Project

General

Profile

Actions

Feature #1845

closed

smdelete prompt should accept partial answer

Added by Canehan Xavier over 12 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Low
Assigned To:
Target version:
-
Start date:
08/09/2011
Due date:
% Done:

90%

Estimated time:
0.12 h

Description

smdelete enforces answer as full lower-case. For inattentive users, it may quit silently when ansered a single "y" :

canehan@ccxc:~(0)% smdelete -table machine_name -name ccxrtsn001 --really-remove
Really Delete ccxrtsn001 [yes/no] [no] y
canehan@ccxc:~(0)%

Normal termination, return code 0, nothing deleted although it was meant.
Included patch permits positive answers from "y" to "YES".


Files

smdelete_prompt.diff (440 Bytes) smdelete_prompt.diff regex on $ans Canehan Xavier, 08/09/2011 10:21 AM
Actions #1

Updated by Wernli Fabien over 11 years ago

  • Status changed from New to Resolved

resolved using qr/^y(es)?/i

Actions

Also available in: Atom PDF