bash: how to echo to the prompt without executing
- From: Berk Birand <graffiti@xxxxxxxxx>
- Date: Wed, 27 Dec 2006 04:13:00 -0500
Hi,
I had posted the following question to gnu.bash, but couldn't get an
answer. I then found out about this newsgroup, and figured I could try it
here.
I know the subject sounds really weird, but that's the best I could
do to summarize what I want in one line. I am looking for a way to echo
some string to the bash prompt without actually executing it. The string
should be displayed after PS1, and the user should be able to edit it
using the standard command-line editing keys. Once s/he is done, pressing
RETURN will finally send it to the shell, just like as usual. This can be
from within a shell script or function, or even in C or Perl.
Can this be done at all? I had looked at some escape sequences, but I
couldn't find anything useful.
Any help would be appreciated,
Berk
--
Posted via a free Usenet account from http://www.teranews.com
.
- Follow-Ups:
- Re: bash: how to echo to the prompt without executing
- From: Chris F.A. Johnson
- Re: bash: how to echo to the prompt without executing
- From: Stephane CHAZELAS
- Re: bash: how to echo to the prompt without executing
- Prev by Date: O.T. sed&awk pronunciation
- Next by Date: Re: bash: how to echo to the prompt without executing
- Previous by thread: O.T. sed&awk pronunciation
- Next by thread: Re: bash: how to echo to the prompt without executing
- Index(es):
Relevant Pages
|
|