[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
optional dedicated selection for ' select '
From: |
microsuxxor |
Subject: |
optional dedicated selection for ' select ' |
Date: |
Sun, 15 Dec 2024 09:55:18 +0100 |
i made following code
mxlog.select() {
local choise a=$1
select choise in "${mxulist[@]}" "${extramodels[@]}" ; do
! [[ $choise ]] &&
break
llmchoosen=$choise
printf %s >"$mlastllm" "$llmchoosen"
break
done < <(
[[ $a ]] &&
printf %s\\n "$a" ||
cat
) > >(
[[ $a ]] ||
cat
) 2>&1
}
i tried with the < <( to make optional auto selection
but it doesnt work
i imagine one workaround
i add all elements to an array , and select selection -1 of them
but why doesnt that stdin to select work
the savefile dosnt get changed
- optional dedicated selection for ' select ',
microsuxxor <=