Closed sudormrfbin closed 4 years ago
The --list option is processed here first with an if construct: https://github.com/jethrokuan/z/blob/34d35b587012e9319dcc25cc73b02adeb11a8ce7/functions/__z.fish#L143-L147
--list
if
It is checked for and acted upon again here, inside the else part of the aforementioned if conditional: https://github.com/jethrokuan/z/blob/34d35b587012e9319dcc25cc73b02adeb11a8ce7/functions/__z.fish#L159-L162
The second check will never run:
_flag_list
awk
tr
The
--list
option is processed here first with anif
construct: https://github.com/jethrokuan/z/blob/34d35b587012e9319dcc25cc73b02adeb11a8ce7/functions/__z.fish#L143-L147It is checked for and acted upon again here, inside the else part of the aforementioned
if
conditional: https://github.com/jethrokuan/z/blob/34d35b587012e9319dcc25cc73b02adeb11a8ce7/functions/__z.fish#L159-L162The second check will never run:
_flag_list
is set, theawk
part is executed and the function returns (the if conditional is the last block in the function)._flag_list
is not set, neither theawk
part or thetr
part is executed.