bash: how to echo to the prompt without executing



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

.



Relevant Pages

  • Re: bash: how to echo to the prompt without executing
    ... On 2006-12-27, Berk Birand wrote: ... I then found out about this newsgroup, and figured I could try it ... some string to the bash prompt without actually executing it. ... from within a shell script or function, or even in C or Perl. ...
    (comp.unix.shell)
  • Re: Outlook Express question
    ... IMproper string. ... Post replies to the newsgroup. ... @="Microsoft Outlook Express 6" ... >>> Jim Carlock ...
    (microsoft.public.windowsxp.general)
  • Re: Outlook Express question
    ... IMproper string. ... Post replies to the newsgroup. ... @="Microsoft Outlook Express 6" ... >>> Jim Carlock ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • RE: All FAX printers are Inaccessible
    ... Check for the string values listed on the right pane. ... This newsgroup only focuses on SBS technical issues. ... you may want to contact Microsoft CSS directly. ... I logged in as the domain admin on the client PC, ...
    (microsoft.public.windows.server.sbs)
  • Re: best design for parse
    ... before I got it accepted that the used VB.net language in ASPNET was ... of this newsgroup. ... the objective to standardize the date string to yyyy-mm-dd ... what is the best way to come up a relevant regex for the incoming ...
    (microsoft.public.dotnet.languages.vb)