You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd probably make a literal empty case error out and leave the commandline incomplete. As it stands you can type the example interactively, and it looks like it works.
Now, case with an empty expansion is another case (hahaha), but there it's probably expected that it won't match. E.g.
The documentation says this is valid syntax, and indeed it is:
However, the case without an argument is unreachable. A parameter to
switch
that expands to nothing is equivalent to the empty string (per https://github.com/fish-shell/fish-shell/blob/master/src/parse_execution.cpp#L534-L539).Should
case
without an argument be a default (equivalent tocase '*'
) or an error? Or should it be left alone?The text was updated successfully, but these errors were encountered: