4 ms·
> get_nix_version(){ > # shellcheck disable=SC2046 > extract_nix_version $(nix --version) > } You might do something like: get_nix_ver
by bitsig 6y ago
> get_nix_version(){
> # shellcheck disable=SC2046
> extract_nix_version $(nix --version)
> }
You might do something like:
get_nix_version(){
local IFS=' '
extract_nix_version $(nix --version)
}
if you want set "IFS=$'\n'" globally, and still be able split on space "locally".
Edit:
Still needs the "# shellcheck disable=SC2046" stanza, though