Re: bbc script
Hi,
Jude DaShiell wrote:
> select station in bbc1 bbc-1-extra bbc-2 bbc-3 bbc-4 \
> b bc-4-long-wave-and-shipping
> bbc-4-extra bbc-5 \
> bbc-6-music bbc-world-service quit
> do
> case $REPLY in
> $REPLY==1)
man bash says about "case" that before ")" are patterns which are tested
whether they match.
So the text snippet "$REPLY==" before "1)" looks wrong.
This litle experiment works for me:
select station in AAA BB CC quit
do
echo $REPLY
case $REPLY in
1) echo aaa
;;
2) echo bb
;;
3) echo cc
;;
4) break
;;
esac
done
(As C programmer i am more into "if"-"elif"-chains than into "case", though.)
Have a nice day :)
Thomas
Reply to:
- References:
- bbc script
- From: Jude DaShiell <jdashiel@panix.com>