[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: select: want to let user leave with just a RET
From: |
Dan Jacobson |
Subject: |
Re: select: want to let user leave with just a RET |
Date: |
27 Jun 2002 07:37:08 +0800 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
>> The only thing bugging me about this is that I want to let the user go
>> if he enters just a RET. Apparently this is not possible. Perhaps a
>> "select -e" should be added so the user can get out with just a RET
>> instead of fancy C-d, C-c.
I ran Arnold's example on debian woody and I hit just plain RET and it wouldn't
let me go. Had to hit C-d.
select var in word1 word2
do
if [ "$REPLY" = "" ]
then
echo congratulations, Dan Jacobson is very curious how \
you got here
break
fi
echo $var
done
--
http://jidanni.org/ Taiwan(04)25854780