END(1)
πΈ NAME πΈ
okay bestie, this is END(1) from the fish-shell manual π and the main character is end β end a block of commands. slay.
β¨ SYNOPSIS β¨
here's the vibe, fr fr:
begin
[COMMANDS ...]
end
function NAME [OPTIONS]; COMMANDS ...; end
if CONDITION; COMMANDS_TRUE ...; [else; COMMANDS_FALSE ...;] end
switch VALUE; [case [WILDCARD ...]; [COMMANDS ...]; ...] end
while CONDITION; COMMANDS ...; end
for VARNAME in [VALUES ...]; COMMANDS ...; end
π DESCRIPTION π
so the end keyword closes a block of commands started by one of these iconic commands:
- π±
beginβ to start a block of commands. - π οΈ
functionβ to define a function. - π
if,switchβ to conditionally execute commands. - π
while,forβ to perform commands multiple times.
and bestie, listen: no cap, the end keyword does not change the current exit status. Instead, the status after it will be the status returned by the most recent command. periodt. π
π Copyright π
fish-shell developers β that's the copyright crew, and we're obsessed. π
byeee π«Ά this was END(1) from the fish-shell manual, version 4.9, dated Sep 08, 2026 β huge kisses to the fish-shell developers, mwah ππ¦
π¦ where this page comes from
- arch rolling: fish 4.9.3-1 Β· GPL-2.0-only AND BSD-3-Clause AND ISC AND MIT AND PSF-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms