DISCUSSION: Power to the Users - Part 4
This thread is to discuss the article titled:
Power to the Users - Part 4
Quote:
Power to the Users. Shell Scripting & GUI interfacing for Desktop Users By Stomfi © 2006 Part 4 - Validation, Editing and Dialog Windowing Validation Adding validation to input scripts is used to make sure the user doesn't enter something unwanted. Simple validation was already used in the while loops to make sure the user entered at least one character when the names were input with the test construct:
Code:
[ ${#Varname} -lt 1 ]
which tests for the number of characters in Varname, and returns "true" if there are none. The simple input script doesn't test that the user entered only one name, which is what we want, although it could be a hyphenated name, which is OK.
|
Last edited by XavierP; 04-01-2006 at 11:15 AM.
|