mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 12:21:19 -03:00
docs: update all command synopsis formatting
Adds synopses for those commands missing them. Moves all synopsis sections to code blocks. This improves the appearance, although highlighting as fish code may not be the ideal appearance.
This commit is contained in:
@@ -6,8 +6,9 @@ case - conditionally execute a block of commands
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end
|
||||
::
|
||||
|
||||
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end
|
||||
|
||||
Description
|
||||
-----------
|
||||
@@ -20,14 +21,11 @@ Note that fish does not fall through on case statements. Only the first matching
|
||||
|
||||
Note that command substitutions in a case statement will be evaluated even if its body is not taken. All substitutions, including command substitutions, must be performed before the value can be compared against the parameter.
|
||||
|
||||
|
||||
Example
|
||||
-------
|
||||
|
||||
Say \$animal contains the name of an animal. Then this code would classify it:
|
||||
|
||||
|
||||
|
||||
::
|
||||
|
||||
switch $animal
|
||||
|
||||
Reference in New Issue
Block a user