Difference between revisions of "Elif"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
[[if]]..elif..else | [[if]]..elif..else | ||
+ | |||
+ | [[if]] test-commands; then | ||
+ | consequent-commands; | ||
+ | elif more-test-commands; then | ||
+ | more-consequents; | ||
+ | else alternate-consequents; | ||
+ | fi | ||
== See also == | == See also == |
Latest revision as of 13:38, 14 November 2022
if..elif..else
if test-commands; then consequent-commands; elif more-test-commands; then more-consequents; else alternate-consequents; fi
See also[edit]
if
,man test
,-z, elif
, BraketBash [ -c ]
,alias
,&&
, Bash history, Autocompletion,set
,unset
,export
,.bash_aliases, .bashrc and .bash profile
,PS1
,echo
,brace expansion
, Function,shopt
,trap
,set -e
,source
,PATH
,complete
,disown
,.hushlogin
,.bashrc
,builtin
,eval
,set
,$PATH
,$HOME
,TZ
,.profile
,-e, -i
,Builtin (Bash)
,mapfile
,~
, return (Bash), for, until,declare, dirname, basename, functions.sh
, Bash arithmetic expansion,shift, bash --rcfile, readonly, $1, $@
Advertising: