help-bash
[Top][All Lists]
Advanced

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

umatched pattern in case-statement, why?


From: shynur .
Subject: umatched pattern in case-statement, why?
Date: Mon, 2 Sep 2024 17:11:46 +0000

Hi, friends~

I'm writing some Bash code and having some trouble...

    d=[[:digit:]] d3=$d$d$d d4=$d3$d
    line='(001) 345-0000'
    case $line in
        "($d3) $d3-$d4")
            echo $line;;
    esac

Why doesn't the above code print anything?  TIA.


reply via email to

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