help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: whats wrong with my code , [[ $arg == s ]] and case $a in .. not wor


From: alex xmb ratchev
Subject: Re: whats wrong with my code , [[ $arg == s ]] and case $a in .. not working
Date: Sun, 5 Mar 2023 00:09:01 +0100

shellcheck says nothing

On Sat, Mar 4, 2023, 11:48 PM alex xmb ratchev <fxmbsw7@gmail.com> wrote:

> once in a while i get over obviously wtf
>
> i try
>   for a
>  [[ $a == s ]] &&
> arr_asign
>
> and
>    for a ; do
>   case $a
>  s)
> arr_assign
>
> i tested with args 's' and 'foo'
> which should result in apt-cache search foo
>
> but in both cases , [[ and case , the s never gets catched .. it says
> apt-cache option s not understood
>
> its like a reverse wonder for me
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]