Mailinglist Archive: opensuse (2806 mails)
| < Previous | Next > |
Re: [opensuse] Extremely hideous mishandling of history in bash
- From: Andreas Jaeger <aj@xxxxxxx>
- Date: Wed, 30 Jul 2008 12:00:38 +0200
- Message-id: <ho1w1bbsjd.fsf@xxxxxxxxxxxxx>
Dave Howorth <dhoworth@xxxxxxxxxxxxxxxxx> writes:
I should have copied and paste everything ;)
9.3 is ancient and does not even get security fixes anymore...
Yes, happens on my 11.0 system as well - and it looks like this is
intented, it's history editing IMO.
Andreas
--
Andreas Jaeger, Director Platform / openSUSE, aj@xxxxxxx
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
Maxfeldstr. 5, 90409 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
Andreas Jaeger wrote:
I'm not sure I follow you (or I have old settings):
$ ls -A
[...]
up-arrow, edit it to use:
$ ls -Af
[...]
$ history |tail
1010 ls -a
1011 ls -af
...
So, this works as expected for me...
I'm deeply concerned about your settings! They've somehow changed ls -A
into ls -a :)
I should have copied and paste everything ;)
On this 9.3 system, that sequence works as expected, but the following
sequence produces a somewhat unexpected result:
9.3 is ancient and does not even get security fixes anymore...
$ ls -A
[...]
up-arrow, edit it to use:
$ ls -Af
[...]
up-arrow to the ls -Af line and add g to the end
don't execute it, but up-arrow
down arrow, the g is there
don't execute, down-arrow to an empty prompt
$ history |tail
...
1001 ls -A
1002* ls -Afg
...
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.
It is occasionally annoying when I forget about it :(
I've no idea if this occurs on newer systems.
Andreas
--
Andreas Jaeger, Director Platform / openSUSE, aj@xxxxxxx
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
Maxfeldstr. 5, 90409 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
| < Previous | Next > |