i edited the case away to a [[ ${cmd[$1]} ]]
and it began to work ..
and i forgot to send the script
i send now + fixed one
id still want to know why the case failed
greets ..
On Fri, Nov 1, 2024, 02:38 #!microsuxx <fxmbsw7@gmail.com> wrote:
> i made a script in that i have a case statement with a listing separated
> by | , in a var
> now this errors
> why
>
> ~ $ m=a\|b ; case $m in $m) echo ye ; esac
> ye
>
> works
>
> in the script i have case .. in $shorts)
> it errors says my unknown cmd printf ... pattern not found ..
>
> ~ $ echo $short
> li|la|ds|fs|ac|U|S|u|s|r|i|f|c
>
> ~ $ bash m/mb.termux.pkg S bash
> unknown cmd: S
>
> has something to do with new $IFS at some point ?
>
> greets ..
>
>