pick command is used to select its arguments interactively.
i have made it to take its arguments from stdin...
why the break statement is not working??
Code:
if [ $# -eq 0 ];then
read data;
set $data;
fi
for i
do

        echo -n "$i? "
        read response
        case $response in
        y*)echo "$i";;
        n*)break;;
        esac
done