.TH "end" 1 "8 Feb 2007" "Version 1.22.3" "fish" \" -*- nroff -*- .ad l .nh .SH NAME end - end a block of commands. .PP .SS "Synopsis" .PP .nf begin; [COMMANDS...] end if CONDITION; COMMANDS_TRUE...; [else; COMMANDS_FALSE...;] end while CONDITION; COMMANDS...; end for VARNAME in [VALUES...]; COMMANDS...; end switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end .fi .PP .SS "Description" \fCend\fP ends a block of commands. For more information, read the documentation for the block constructs, such as \fCif\fP, \fCfor\fP and \fCwhile\fP. .PP The \fCend\fP command does not change the current exit status.