-----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@xxxxxxxxxxx> 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-----