04-11-2014
/bin/sh just means "any shell compatible with generic bourne". It could be bash, ksh, or even old-fashioned, honest-to-goodness, written-in-1977 Bourne written by Steven Bourne himself.
So if you're using anything except generic Bourne features, you should probably specify what shell you're using more exactly.
The output of select can differ from shell to shell. If it's readable, I don't really see an issue.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all
is menu driven by SELECT can be a dynamic ?
My requirement is that i want SELECT to be created on run time not predefine . The select should be created as per the no of
words in a file
thanks in advance
rawat (2 Replies)
Discussion started by: rawatds
2 Replies
2. Shell Programming and Scripting
Is there any way to implement a drop down menu selection in bash?
This is on CDLinux which is a very minimal live CD and I am using it to install an image onto a hard drive. Part of that process is the timezone selection. There are just too many timezones to attempt to use the "select" command.... (1 Reply)
Discussion started by: simonb
1 Replies
3. Shell Programming and Scripting
is there a way I can make the menu list reappear when I use select ?
-----
menulist="Change_title Remove_tag Change_tag Add_line Quit"
select word in $menulist #change_title remove_tag change_tag add_line quit
do
case $word in
# first menu option Change Title
... (9 Replies)
Discussion started by: forever_49ers
9 Replies
4. Shell Programming and Scripting
Hello everyone.
I am using the select command to build a menu, here is my question:
Is it possible to generate a menu which contains several sections and have a separator between the sections without having a selection number generated in front of the separator?
This is a sample of what I would... (1 Reply)
Discussion started by: gio001
1 Replies
5. Shell Programming and Scripting
Hi All,
I am trying to use the select command & the menu.
below mention is my script
#!/bin/bash
2
3 PS3="Is today your birthday? " #PS3 system variable
4
5 echo "\n"
6
7
8 select menu_selection in YES NO QUIT
9 do
10
11 ... (1 Reply)
Discussion started by: milindb
1 Replies
6. Shell Programming and Scripting
Hi,
I am using a select in ksh for a script
#!/bin/ksh
FIRSTLIST='one two three four quit'
PS3='Please select a number: '
select i in $FIRSTLIST ;
do
case $i in
one) print 'this is one' ;;
two) print 'this is 2' ;;
three) print 'this is 3' ;;
four) print... (7 Replies)
Discussion started by: omerzzz
7 Replies
7. Shell Programming and Scripting
I am creating a Select menu with a few options and I would like to create a "better" looking interface than just this:
1) Option 1
2) Option 2
3) Option 3
Instead, I would like something like this:
***********
* Cool Script *
* 1) Option 1 *
* 2) Option 2 *
* 3) Option 3 *... (2 Replies)
Discussion started by: chipblah84
2 Replies
8. Shell Programming and Scripting
Hi All,
I need to develop a bash script list “list of files” and able to select if any and set as globe variable in script and use for other function.
I would like to see in menu format.
Example out put
Below are the listed files for database clone
1. Sys.txt
2. abc.txt
3. Ddd.txt... (1 Reply)
Discussion started by: ashanabey
1 Replies
9. Shell Programming and Scripting
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. Shell Programming and Scripting
hi i am new to bash scripting ..
i created a bunch of folders but only want the folder names with file1. so i go in and make an array to grab the folders the put in a file then i strip the directories so i just have the folder names i need then i would like to make the menu with a selection... (3 Replies)
Discussion started by: lamby22
3 Replies
LEARN ABOUT DEBIAN
html::formfu::element::combobox
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)