editing a prompt

Joseph C. Lininger jbahm at pcdesk.net
Sun Mar 28 18:25:14 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The problem is that according to the line, you are echoing a line,
and then reading a line and storing it in p. If you want to read the
prompt from teh keyboard, read it directly like this:

read prompt

If you want to set prompt equal to p, then do this:

prompt="$p"
- ---
Joseph C. Lininger
jbahm at pcdesk.net
- ----- Original Message ----- 
From: "Christopher Moore" <christopher.h.moore at verizon.net>
To: <speakup at braille.uwo.ca>
Sent: Sunday, March 28, 2004 10:34 AM
Subject: editing a prompt


> Hello,
> I'm trying to write a script where the user can edit a prompt. An
> example might be to rename a file and prompt with the existing
> filename (like in winblows explorer).  
> 
> The simple commands look like:
> echo -n "$PROMPT"; read p
> 
> The problem is that the read command won't recognize $PROMPT as
> input even though it prinits on the same line.  
> 
> Any ideas?
> 
> Thanks
> Chris
> 
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3

iQA/AwUBQGde2Cenap9Jqj2wEQIrKQCgxpIf39m/aQ0oOQVcxELfEhr/5AQAoM/G
VinxEakgZ9yvhYBkmmX+OG87
=DW7S
-----END PGP SIGNATURE-----





More information about the Speakup mailing list