View Single Post
  #2 (permalink)  
Old 05-10-2008
guruparan18 guruparan18 is offline
Registered User
 

Join Date: May 2008
Location: India
Posts: 21
Try this

Quote:
bash-2.03$ b=[1,2,3,4]
bash-2.03$ case $ans in
> $b) echo $ans ;;
> x) break ;;
> *) echo "Error"
> esac
It should work.
Reply With Quote