[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: no way to give 'select' a default value
From: |
Greg Wooledge |
Subject: |
Re: no way to give 'select' a default value |
Date: |
Tue, 22 Feb 2011 08:53:09 -0500 |
User-agent: |
Mutt/1.4.2.3i |
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.