Re: [opensuse] Extremely hideous mishandling of history in bash



Dave Howorth wrote:
Andreas Jaeger wrote:
9.3 is ancient and does not even get security fixes anymore...

Feel free to attack the m/c if you think that's a problem. It works for
now :( Perhaps I'll upgrade it to 11.1

It appears to have completely lost the record of the ls -Af command that
was executed and instead recorded a command that was never executed.
Yes, happens on my 11.0 system as well - and it looks like this is
intented, it's history editing IMO.

Yes, that's why British and American history books read differently :)

It would be better if it kept the original edited line and inserted the
new one at the end, IMHO.

As a workaround, if I realize I've made a mistake whilst editing a
command, I don't abandon the edit. I add something else to make it
harmless, such as a nonexistent command at the beginning, and then
execute it. That way, I can recover the original history.

Cheers, Dave

I've given the mysterious commands a go and all is fine on an 11.0 laptop, 10.3 server, 10.3 desktop, and 10.0 server. All produce the following in the history list:

3015 ls -A
3016 ls -Af
3017 history

I agree with Dave. I had a 9.3 server until just a few months ago. I found no real reason to change it other than to avoid becoming a dinosaur...Dave?



--
David C. Rankin, J.D., P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: [opensuse] Extremely hideous mishandling of history in bash
    ... was executed and instead recorded a command that was never executed. ... intented, it's history editing IMO. ... that's why British and American history books read differently:) ... execute it. ...
    (SuSE)
  • Re: "Ctrl-o" equivalent in csh or tcsh
    ... ctrl-o will execute the line and then move ... down one entry in the history. ... Is there a way of achieving that in csh or tcsh? ... csh do have command history facility. ...
    (comp.unix.shell)
  • Re: who have execute a command
    ... > how I know who have execute a command that show in history command queue? ... In Bash at least, the command history is different for each user, ...
    (comp.unix.questions)
  • Is my server hacked?
    ... I found something strange with my history on my Linux server; ... is the output from my "history" command. ... Did someone access my account to execute ...
    (comp.os.linux.security)
  • [Full-Disclosure] Advanced usage of system() function.
    ... and call its arguments as a command for shell. ... as we can see we still didnt get what we want (typing exit ... Connection closed by foreign host. ... think what we want to execute. ...
    (Full-Disclosure)