[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: no way to give 'select' a default value
From: |
Clark J. Wang |
Subject: |
Re: no way to give 'select' a default value |
Date: |
Tue, 22 Feb 2011 22:47:02 +0800 |
On Tue, Feb 22, 2011 at 9:53 PM, Greg Wooledge <wooledg@eeg.ccf.org> wrote:
> On Mon, Feb 21, 2011 at 04:05:34PM +0800, jidanni@jidanni.org wrote:
> > There is no way to give the 'select' command a default value, so all the
> > user does is need to hit return.
> > $ help select
> > ... If the line is empty, WORDS and the prompt are redisplayed.
>
> `select' is extremely limited. If you need any kind of flexibility that
> it doesn't offer, just scrap it and write your own while/read/test loop.
>
>
Agree. I've never used `select' in my scripts.
--
Clark J. Wang