A wonderful idea about shell!
Dear Sir or Madam: I have a wonderful idea about shell(GNU bash, version 3.2.39(1)-release (i486-pc-linux-gnu)). I think current shell is not convenient enough for us and It isn't scientific which is called The Principle of Location. For example,I am a beginner and I often need to carry out many commands I carried out just now for the sake of more masterly.While I found it hard because when I want to continue my following commands,I have to back and back again and again to find the next one I need,although it is just very near to the commands I execute just now.The only reason maybe is that the point of current command is pointing to the end of the whole list of commands,but not the location of the command which is just executed. I don not know the datastructure and the organization of the whole command-list,but I guess there are much redundancy of data in it.Maybe we could change it and remove the surplus data.We could put the current point to the location of the command which is just executed by us,so that we could find the near commands we need immediately,and don not need to press the key of 'up' or 'down' many many times. We are so smart that we are so lazy,so I think it is a wonderful idea.While if it is not comfortable for other users or it is hard to have a change,I think we should at least add a options to finish this function for us beginners.:-) That is all.I am looking forward for your mail. Wish you happy! Yours donglongchao 2008.5.17 PS:I am sorry,I am a Chinese and my English language is a little terrible.If it is hard for you to understand what I write,you can tell me .So I could write it again in Chinese language.It will be much easier to understand.:-D
Re:Re: A wonderful idea about shell!
Dear Eric : Thank you for your mail and response. I think that I could understand what you said in you mail,but it maybe could not fit what I really need in my last mail. I have try your method(the shotrcut -- control+r) and it is a very convenient tool for me because with it I could find everything using some keys. Maybe my poor english make you misunderstand what I said.:-)My real meaning in my last mail is that when we carry out a command exactly in a second time ,in fact we could not need to create a new one but we use the old one and locate ourselves on the location of the old command.If we could make the shell running in this way, when we carry out a same command,we could get to the location of the command(the old one) and we could carry out the commands we very often do near the old one with only a few presses of 'up' or 'down' arrow.I am sure that most of us will always work more efficiently in this way. I am sorry again for my poor expressing and if it take any confuse and misunderstanding to you,I feel very sorry. I am looking forward for your mail. Wish you happy! yours donglongchao 2008.5.25 P.S:I am using UBUNTU 8.04 for desktop,but I have some problem.Maybe it is a bug,so whom should I write mail to slove or express it? Would you please give me an advice? Thank you. 在2008-05-18,"Eric Blake" <[EMAIL PROTECTED]> 写道: >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 > >According to donglongchao on 5/16/2008 11:28 PM: >| We could put the current point to the location of the command which is >just executed by us,so that we could find the near commands we need >immediately,and don not need to press the key of 'up' or 'down' many many >times. > >The 'reverse-search-history' readline command, bound by default to >control-r, seems like the perfect fit for what you are describing - a >shortcut for rapidly searching through only the commands that contain a >particular substring, rather than having to cycle through every single >recent command with the 'up' and 'down' arrows. > >- -- >Don't work too hard, make some time for fun as well! > >Eric Blake [EMAIL PROTECTED] >-BEGIN PGP SIGNATURE- >Version: GnuPG v1.4.9 (Cygwin) >Comment: Public key at home.comcast.net/~ericblake/eblake.gpg >Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > >iEYEARECAAYFAkgvLDoACgkQ84KuGfSFAYDL7gCgqB0iXfbCKQ8HRv97ezmUjCpd >mBMAoJePRYKldzQ5w/4/4ndOvU1WOmlu >=/M+2 >-END PGP SIGNATURE-
A Suggestion On Bash
Dear Sir or Madam: I have a wonderful idea about Bash(GNU bash version 3.2.39(1)-release (i486-pc-linux-gnu)). When I use tools like 'cat' or some other commands like this,I find it hard to specify where the file that I 'cat' begins because the command I typed just now was mixed with the file I want to read and they look like the same. So I think if we could add special color such as red or green to the command lines we typed before to mark them,just like the different colors on different kinds of files and catalogues,it will be much easier for us to tell where the file we want to read begins. I am looking forward to your replay. Wish you happy! Yours donglongchao 2009.2.7