mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-06 02:01:30 +08:00

builtin_set_query returns the number of missing variables. Because the return value passed to the shell is an 8-bit unsigned integer, if the number of missing variables is a multiple of 256, it would overflow to 0. This commit saturates the return value at 255 if there are more than 255 missing variables.