-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
Milestone
Description
I think one should be able to switch on a variable that may or may not be set:
switch $LANG
case 'en_US*'
...
endIf $LANG is unset:
fish: switch: Expected exactly one argument, got 0
(Same with command substitutions which may sometimes print nothing.)
I think it should just silently short circuit and do nothing.
Reactions are currently unavailable