Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I enter a command. It fails. I press arrow up, modify something and enter it again ... hold it right there.

It used to work like that. Now it's more like: I enter a command. It fails. I press arrow up, get the last command which didn't fail, likely "ls" or something useless and I type the whole thing again back by hand.

What happened? It wasn't always like this. But it's quite some time since this behavior changed, I'll give you that. Some years ago, at least. How do I put some sanity back into my bash prompt?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

For my it still works as you describe it should, but maybe you need to look for something in the ~/.bashrc file that prevents some commands from showing up in the history, maybe something as described in here: http://blog.dhampir.no/content/avoiding-invalid-commands-in-bash-history

share|improve this answer
    
    
Why would you post the exact same question? Now I wasted my time on a question that was already answered... –  Gerhard Burger Dec 7 '12 at 17:03
    
There is considerable overlap between these two sites. –  Prof. Falken Dec 7 '12 at 17:42
    
Yeah, that was my point, they both are part of stackexchange. So the common practice is to ask a question on only one of them, there is also the option to move a question to one of the other sites if that site is a better fit for the question. Well anyway, glad you got it solved. –  Gerhard Burger Dec 7 '12 at 18:20
    
Sorry, at least they are linked now for posterity. –  Prof. Falken Dec 7 '12 at 18:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.