Fedora Linux Support Community & Resources Center
  #1  
Old 29th February 2008, 06:30 AM
sam09 Offline
Registered User
 
Join Date: Jan 2008
Posts: 26
BASH script gets stuck to prompt after history search

Has anyone else noticed, in bash, sometimes after using <UP> <DOWN> keys to search history of cmds youve executed you get left with an extra little bit of previously executed script stuck to the prompt that you have to `clear` to get rid of?
I know this is really minor but it gets annoying after a while. Does anyone know a fix for this.
BTW im using: GNU bash, version 3.2.33(1)-release (x86_64-redhat-linux-gnu)
__________________
Smolt Profile
Reply With Quote
  #2  
Old 29th February 2008, 08:05 AM
bmvbab Offline
Registered User
 
Join Date: Jun 2005
Location: India
Age: 36
Posts: 376
think i saw this on rhel 4 too.
happens generally after a lot of copy/paste

things dont rspond, i get wierd stuff on the screen, after a few seconds they are normal
Reply With Quote
  #3  
Old 29th February 2008, 12:05 PM
sam09 Offline
Registered User
 
Join Date: Jan 2008
Posts: 26
Nah my problem is this: open a terminal, hold down <UP> scan through history for a second then press <DOWN> till your back at (what should be) a blank prompt. But the problem is the prompts not blank it has some code stuck to it that you cant delete e.g.

[sam@localhost ~]$ echo

the echo part cant be deleted, like its part of the prompt. Like i said its minor, the extra text goes away after you execute another cmd, just weird is all. I'll see if bash has a bugzilla or something, bring it up there.
__________________
Smolt Profile
Reply With Quote
Reply

Tags
bash, history, prompt, script, search, stuck

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Up/Down keys through bash history in xterm; FC11 DZ* Using Fedora 0 24th June 2009 12:10 AM
Bash script - File search output to new file ampapa Using Fedora 12 19th October 2006 01:49 AM
Escaping bash history expansion character davej Using Fedora 4 6th September 2005 08:32 PM
How to disable Bash History? Repo Security and Privacy 1 31st July 2005 08:23 PM


Current GMT-time: 05:59 (Wednesday, 24-05-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat