Sponsored Content
Top Forums Shell Programming and Scripting Select command help with blank input value Post 302839195 by ambroze on Wednesday 31st of July 2013 03:57:21 PM
Old 07-31-2013
Quote:
Originally Posted by RudiC
<space><enter> behave as you expected: "invalid choice " is displayed for 2 seconds, and then MAIN is executed (BTW, be careful with unterminated recursion here!).
The behaviour of <enter> alone is a feature of the select command, see its man page.
<enter> or <space><enter> are not behaving as expected it does not go to "invalid choice" for 2 secs, then MAIN, it's just displaying the menu list down on the screen over and over, hence this is my issue I'm wanting to correct. That behaviour doesn't not seem right.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

select datas from an input file

I have a file containing a list of references and I want to run a script that will make the same action for each reference. The input file changes every hour, it's why I want to use a script that can read in a file, record by record, and run a specific action for the reference readed. Thanks... (1 Reply)
Discussion started by: dde
1 Replies

2. Shell Programming and Scripting

Select command array

Hello everyone, I have a quick question about the select command in ksh. I am using it to define a menu for user selection, I have found that the REPLY var contains the input from the user, I was interested to find out if there is a system variable that contains the whole menu as an array, the... (2 Replies)
Discussion started by: gio001
2 Replies

3. Shell Programming and Scripting

Validating user input is not blank

Trying to create a script in BASH that would ask the user to enter another user name making sure the input is not blank before they hit enter then to check the home directory of that user does exist, I have the check folder sorted it's just the loop to make sure the user has entered chars (5 Replies)
Discussion started by: MBN
5 Replies

4. Shell Programming and Scripting

extract/select pattern from input

Hey, examples of the input (text line): /bla/blMOasdn234.adanif24/blabla.rar /bla/blMOasdn234.adanif24/blabla23124.bin /bla/bla/bla/bla/bla/bla.bin and what I need to do is extract/select only the dir path so the output would be: /bla/blMOasdn234.adanif24/ /bla/blMOasdn234.adanif24/... (4 Replies)
Discussion started by: TehOne
4 Replies

5. Shell Programming and Scripting

how to test input variable is a string in a select loop

Okay -- I hope I ask this correctly. I'm working on my little shell script to write vendor names and aliases to files from user input. If a user choose to add to a file, he can do that as well. I'm using a select loop for this function to list all the possible files the user can choose from.... (7 Replies)
Discussion started by: Straitsfan
7 Replies

6. Shell Programming and Scripting

PS3 select when wrong input given

Hi All I am using the below code to chose a file to view : PS3="Select file to view : " select FILE in `ls` QUIT do if ; then clear cat $FILE else break fi REPLY='' done Everything works fine as long as I am giving the correct choice . But when i give a... (4 Replies)
Discussion started by: ningy
4 Replies

7. UNIX for Dummies Questions & Answers

Select Command - return

Hello everyone, A simple question which may have a suggested solution: I am using, and loving, the select command in a ksh93 script on AIX 6.1 to present users with menus. I have been successful in controlling all of key input by the users, I still have an issue with the RETURN key. When the... (4 Replies)
Discussion started by: gio001
4 Replies

8. Shell Programming and Scripting

Script to select the rows from the feed file based on the input value provided

Hi Folks, I have the below feed file named abc1.txt in which you can see there is a title and below is the respective values in the rows and it is completely pipe delimited file ,. ... (3 Replies)
Discussion started by: punpun66
3 Replies

9. Shell Programming and Scripting

Help with 'select' for menu input

A lot of my scripting makes use of the 'select' command to create menu driven input. A typical example of how I use it is as: somevar='' PS3='Select one: ' while ]; do select somevar in $(sqlplus -s $dbuser/$dbpw@mydb <<EOF set echo off feedback off verify off... (7 Replies)
Discussion started by: edstevens
7 Replies

10. UNIX for Beginners Questions & Answers

Select command

Hi I'm using the "select" command in the global_env.sh to log in to the application directory. This file is called in .bashrc profile. Sample code: Filename: global_env.sh set -o vi export severname=$(uname -n) printf '%s\n%30s\n%s\n' "***********************" "Welcome to $severname"... (6 Replies)
Discussion started by: cheers799
6 Replies
HTML::FormFu::Element::ComboBox(3pm)			User Contributed Perl Documentation		      HTML::FormFu::Element::ComboBox(3pm)

NAME
HTML::FormFu::Element::ComboBox - Select / Text hybrid SYNOPSIS
--- elements: - type: ComboBox name: answer label: 'Select yes or no, or write an alternative:' values: - yes - no DESCRIPTION
Creates a multi element containing a Select field and a Text field. A ComboBox element named "foo" would result in a Select menu named "foo_select" and a Text field named "foo_text". The names can instead be overridden by the "name" value in "select" and "text". If a value is submitted for the Text field, this will be used in preference to any submitted value for the Select menu. You can access the submitted value by using the ComboBox's name: my $value = $form->param_value('foo'); METHODS
default If the value matches one of the Select menu's options, that options will be selected. Otherwise, the Text field will use the value as its default. options See "options" in HTML::FormFu::Element::_Group for details. values See "values" in HTML::FormFu::Element::_Group for details. value_range See "value_range" in HTML::FormFu::Element::_Group for details. empty_first See "empty_first" in HTML::FormFu::Element::_Group for details. empty_first_label See "empty_first_label" in HTML::FormFu::Element::_Group for details. select Arguments: \%setting Set values effecting the Select menu. Known keys are: name Override the auto-generated name of the select menu. text Arguments: \%setting Set values effecting the Text field. Known keys are: name Override the auto-generated name of the select menu. CAVEATS
Although this element inherits from HTML::FormFu::Element::Block, its behaviour for the methods filter/filters, constraint/constraints, inflator/inflators, validator/validators and transformer/transformers is more like that of a field element, meaning all processors are added directly to the date element, not to its child elements. This element's get_elements and get_all_elements are inherited from HTML::FormFu::Element::Block, and so have the same behaviour. However, it overrides the "get_fields|HTML::FormFu/get_fields" method, such that it returns both itself and its child elements. SEE ALSO
Is a sub-class of, and inherits methods from HTML::FormFu::Element::Multi, HTML::FormFu::Element::Block, HTML::FormFu::Element HTML::FormFu AUTHOR
Carl Franks, "cfranks@cpan.org" LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-01-23 HTML::FormFu::Element::ComboBox(3pm)
All times are GMT -4. The time now is 01:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy