Dave Howorth
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@suse.de 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