Nicholas Mc Guire wrote:
probably errornous behavior:
when using compgen to allow shortcuts (in the below example for quit and
exit I get a strange behavior when no input is entered and write times
out after 5 seconds:
#! /bin/bash
read -p
HI !
problem: compgen assigns first option on receiving an empty string as
input (i.e. by read -t 5 VAR timing out)
systems and OS:
X86 (Duron and Sempron)
Debian etch:
[EMAIL PROTECTED]:~/shell$ uname -a
Linux backup 2.6.18-hpt374 #4 SMP Thu Mar 20 00:07:28 CET 2008 i686
GNU/Linux