Re: can't the shell do a better job

2005-01-07 Thread Aaron Hall
On Fri, 7 Jan 2005, Ron Johnson wrote: On Fri, 2005-01-07 at 19:54 -0600, Aaron Hall wrote: * bash-style process substitution: diff =(sort file1) =(sort file2) instead of: sort file1 > file1.sorted sort file2 > file2.sorted diff file1 file2 Well that's spiffy... It'd be more sp

Re: Re can't the shell do a better job

2005-01-07 Thread Ron Johnson
On Fri, 2005-01-07 at 19:54 -0600, Aaron Hall wrote: > On Sun, 2 Jan 2005, Gregory Seidman wrote: [snip] > * bash-style process substitution: diff =(sort file1) =(sort file2) >instead of: > sort file1 > file1.sorted > sort file2 > file2.sorted > diff file1 file2 Well that's s

Re: Re can't the shell do a better job

2005-01-07 Thread Aaron Hall
On Sun, 2 Jan 2005, Gregory Seidman wrote: AFAICT, zsh and tcsh are pretty nearly equally good, for some definition of good. If I were willing to put the effort into it, I expect I could port all of my tcsh shell customizations to zsh without compromising any of the features I have grown used to. A

Re: can't the shell do a better job

2005-01-04 Thread Robert Waldner
On Tue, 04 Jan 2005 11:01:32 +0100, Dani Belz writes: >Let's assume I search for 'cdrecord'. I find several entries in >history, but not the one I was searching for. So I do a C-a C-k or a >C-u to get an empty prompt again. But now, I am somewhere in the >middle of the history. Is there a possibil

Re: can't the shell do a better job

2005-01-04 Thread Toshiro
El Mar 04 Ene 2005 08:10, Maurits van Rees escribió: > On Tue, Jan 04, 2005 at 11:01:32AM +0100, Dani Belz wrote: > > Let's assume I search for 'cdrecord'. I find several entries in > > history, but not the one I was searching for. So I do a C-a C-k or a > > C-u to get an empty prompt again. But no

Re: can't the shell do a better job

2005-01-04 Thread Dani Belz
* Maurits van Rees <[EMAIL PROTECTED]> [05-01-04 11:10]: > > Is there a possibility to jump to the end of > > history again? > > Try "ALT+>", so the ALT key and the "greater than" key. [On my > keyboard that is "SHIFT+."] That should bring you to the end of the > history. "ALT+<" brings you to th

Re: can't the shell do a better job

2005-01-04 Thread Maurits van Rees
On Tue, Jan 04, 2005 at 11:01:32AM +0100, Dani Belz wrote: > Let's assume I search for 'cdrecord'. I find several entries in > history, but not the one I was searching for. So I do a C-a C-k or a > C-u to get an empty prompt again. But now, I am somewhere in the > middle of the history. Is there a

Re: can't the shell do a better job

2005-01-04 Thread Dani Belz
* Karsten M. Self [05-01-04 06:36]: > > Sure, but reverse-search-history is probably what you want: > >C-r > > ...recalls the most recently occuring line matching . > > > Repeating the C-r (that's -r BTW) finds the next prior match. Well, I got a problem with that: Let's assume I search

Re: can't the shell do a better job

2005-01-04 Thread Dani Belz
* Karsten M. Self [05-01-04 06:36]: > > Sure, but reverse-search-history is probably what you want: > >C-r > > ...recalls the most recently occuring line matching . > > > Repeating the C-r (that's -r BTW) finds the next prior match. if you often use the same command over and over again y

Re: can't the shell do a better job

2005-01-04 Thread Alexis Huxley
>> before, but if i have used a command several times, the up arrow key wil= > l=20 >> display the same command several times, this is not welcome. =20 >> ~/.bash_history contains the commands used before, can the shell display= >=20 >> the same command just once? export HISTIGNORE=\& Alexis Hux

Re: can't the shell do a better job

2005-01-03 Thread Karsten M. Self
on Sat, Jan 01, 2005 at 02:52:12PM +0800, Smith a ([EMAIL PROTECTED]) wrote: > when i am in command line , i often use up arrow key to get commands used > before, but if i have used a command several times, the up arrow key will > display the same command several times, this is not welcome. >

Re: Re can't the shell do a better job

2005-01-02 Thread Gregory Seidman
On Sun, Jan 02, 2005 at 02:15:22PM -0200, Toshiro wrote: } > Note that I write all my shell scripts for /bin/sh, not zsh or bash or csh } > or tcsh. I even try to avoid using GNU extensions to standard tools like } > sed, tr, and grep (though sometime they are just too useful to work } > around). I

Re: Re can't the shell do a better job

2005-01-02 Thread Toshiro
> Note that I write all my shell scripts for /bin/sh, not zsh or bash or csh > or tcsh. I even try to avoid using GNU extensions to standard tools like > sed, tr, and grep (though sometime they are just too useful to work > around). I've migrated from Ultrix to SunOS to FreeBSD to IRIX to Solaris >

Re: Re can't the shell do a better job

2005-01-02 Thread Gregory Seidman
On Sat, Jan 01, 2005 at 10:53:48PM -0500, cga wrote: } Steve Lamb wrote: [...] } >Well, in the one true shell, zsh, ESC-P and ESC-N will go backwards } >and forwards in the history respectively. It will even take the current } >line as a filter so "ls" followed by multiple ESC-P will bring u

Re: Re can't the shell do a better job

2005-01-01 Thread cga
Steve Lamb wrote: Gayle Lee Fairless wrote: From: Maurits van Rees <[EMAIL PROTECTED]> Somewhat related: with CONTROL-R you can search backwards in your history when on the command line. It can be quite a time saver. I think that's only when you're in emacs-compatible mode. This is a feature of ba

Re: Re can't the shell do a better job

2005-01-01 Thread Jason Chambers
On Sat, Jan 01, 2005 at 10:01:02AM -0800, Steve Lamb wrote: > Well, in the one true shell, zsh, ESC-P and ESC-N will go backwards and > forwards in the history respectively. It will even take the current line > as a filter so "ls" followed by multiple ESC-P will bring up my previous ls > co

Re: Re can't the shell do a better job

2005-01-01 Thread Steve Lamb
Gayle Lee Fairless wrote: From: Maurits van Rees <[EMAIL PROTECTED]> Somewhat related: with CONTROL-R you can search backwards in your history when on the command line. It can be quite a time saver. I think that's only when you're in emacs-compatible mode. This is a feature of bash. Someone with

Re can't the shell do a better job

2005-01-01 Thread Gayle Lee Fairless
From: Maurits van Rees <[EMAIL PROTECTED]> Somewhat related: with CONTROL-R you can search backwards in your history when on the command line. It can be quite a time saver. I think that's only when you're in emacs-compatible mode. This is a feature of bash. Someone with more knowledge of the vari

Re can't the shell do a better job

2005-01-01 Thread Maurits van Rees
On Sat, Jan 01, 2005 at 02:52:12PM +0800, Smith a wrote: > when i am in command line , i often use up arrow key to get commands used > before, but if i have used a command several times, the up arrow key will > display the same command several times, this is not welcome. > ~/.bash_history cont

Re: can't the shell do a better job

2005-01-01 Thread Jason Chambers
On Sat, Jan 01, 2005 at 02:52:12PM +0800, Smith a wrote: > when i am in command line , i often use up arrow key to get commands used > before, but if i have used a command several times, the up arrow key will > display the same command several times, this is not welcome. > ~/.bash_history cont