[wellylug] Default value in read
michael at diaspora.gen.nz
michael at diaspora.gen.nz
Wed May 9 10:53:16 NZST 2007
> (In which I want the user to be able to be able to EDIT the default
> value, as most times the default is correct, or needing a minor change,
> e.g. ".com" might change to "co.nz" )
bash doesn't provide this (as other people have noted); nor does ksh, from
a quick check. zsh might, but then, most people don't have zsh installed.
dialog(1) on a Debian system could probably be used, as could (if you
can assume graphicality & Gnome) zenity; but those all have portability
drawbacks.
Ruby & PHP may have utilities that would be usable; IO::Prompt, the
Perl module for this sort of thing, doesn't appear to support editable
defaults.
-- michael.
More information about the wellylug
mailing list