Project

General

Profile

Actions

Feature #1845

closed

smdelete prompt should accept partial answer

Added by Canehan Xavier over 13 years ago. Updated over 12 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

Also available in: Atom PDF