mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 01:36:39 +08:00
7ddecde543
darcs-hash:20050920133155-ac50b-9a14c6c664dd03afbe8e15e7c7998fcfb5c3c750.gz
26 lines
314 B
Plaintext
26 lines
314 B
Plaintext
|
|
set smurf green
|
|
|
|
switch $smurf;
|
|
case "*ee*"
|
|
echo Test 1 pass
|
|
case "*"
|
|
echo Test 1 fail
|
|
end;
|
|
|
|
switch $smurf
|
|
case *ee*
|
|
echo Test 2 fail
|
|
case red green blue
|
|
echo Test 2 pass
|
|
case "*"
|
|
echo Test 2 fail
|
|
end
|
|
|
|
switch $smurf
|
|
case cyan magenta yellow
|
|
echo Test 3 fail
|
|
case "?????"
|
|
echo Test 3 pass
|
|
end
|