I seem to recall being able to select the contents of a command line by holding down the shift key, and using left and right arrow keys. Is/was that a bash feature? How do I enable it? Also, recently I've noticed I'm losing the last command in my history quite often. Especially if it fails. I don't believe that is the way bash used to function. Has something changed? How to I prevent this from happening? STH
Mon, 26 Jan 2004, by hattons@speakeasy.net:
I seem to recall being able to select the contents of a command line by holding down the shift key, and using left and right arrow keys. Is/was that a bash feature? How do I enable it?
See 'help bind', especially 'bind -P' to see the editting keys in Bash. There is a way to let the numeric keypad control the mouse-cursor (including left- and right click), but I can't find out how at the moment.
Also, recently I've noticed I'm losing the last command in my history quite often. Especially if it fails. I don't believe that is the way bash used to function. Has something changed? How to I prevent this from happening?
Afaik Bash never remembers commands that fail (as in: return a shell error) or that were interrupted. Theo -- Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ICBM 52 13 27N , 4 29 45E. SUSE 8.2 Kernel k_athlon-2.4.20 See headers for PGP/GPG info.
Steven T. Hatton wrote:
I seem to recall being able to select the contents of a command line by holding down the shift key, and using left and right arrow keys. Is/was that a bash feature? How do I enable it?
Also, recently I've noticed I'm losing the last command in my history quite often. Especially if it fails. I don't believe that is the way bash used to function. Has something changed? How to I prevent this from happening?
STH
The arrow keys UP/DOWN allow you to recall previous commands, the LEFT/RIGHT keys allow you to position the cursor at whatever point in the command you want. Regards Sid. -- Sid Boyce .... Hamradio G3VBV and keen Flyer Linux Only Shop.
participants (3)
-
Sid Boyce
-
Steven T. Hatton
-
Theo v. Werkhoven