Jump to content

Menu: Difference between revisions

1 byte added ,  14 years ago
m
→‎{{header|UNIX Shell}}: fix a copypaste error (i suppose)
(Add the bash UNIX Shell.)
m (→‎{{header|UNIX Shell}}: fix a copypaste error (i suppose))
Line 279:
The bash shell with its [[http://www.softpanorama.org/Scripting/Shellorama/Control_structures/select_statements.shtml select]] statement.
<lang bash>bash$ PS3='Which is from the three pigs: '
bash$ select phrase in 'fee fie' 'huff and puff' 'mirror mirror' 'tick tock'; do> if [[ -n $phrase ]]; then
> if [[ -n $phrase ]]; then
> PHRASE=$phrase
> echo PHRASE is $PHRASE
Cookies help us deliver our services. By using our services, you agree to our use of cookies.