greno wrote:
> How can the keyboard buffer be prefilled with an answer for a read command?
> I want to prompt the user with a question using the read command and then
> suggest an answer that they could backspace over and change if necessary.
default="Something or other"
history -s "$default"
re
greno wrote:
> How can the keyboard buffer be prefilled with an answer for a read command?
> I want to prompt the user with a question using the read command and then
> suggest an answer that they could backspace over and change if necessary.
In order to do this a helper application is usually n
How can the keyboard buffer be prefilled with an answer for a read command?
I want to prompt the user with a question using the read command and then
suggest an answer that they could backspace over and change if necessary.
example:
[code] read -p "Please enter quantity: " qty [/code]
Please ent