DOSKEY? (or anything similar)???

DOSKEY? (or anything similar)???

Post by Thorsten Niedzwetzk » Thu, 28 Aug 1997 04:00:00




> I'm going nuts having to retype the command again and again and again. Surely
> there must be a way to let the 'up-arrow' select from the history list - and
> give me the chance to edit the line before pressing enter again.

> Or is there no way?
> /Micke

Use bash. Or tcsh. They have history list support. You can even search
through
the history (CTRL-R with bash).

        Thorsten

 
 
 

DOSKEY? (or anything similar)???

Post by Daniel Ts' » Fri, 29 Aug 1997 04:00:00




Quote:> Both pdksh and bash offer the "set -o vi" or "set -o emacs" option; with
> vi set, you to an "ESC-K" then use the h/j/k/l keys to navigate the

        Something that I have been wondering about (but too lazy to
investigate): The real KSH has an 'r' command to repeat the last command, or
the nth previous command, much like ! in csh. You can also say 'r ls' to
repeat the last 'ls' command, etc.  But it seems that bash doesn't
even though it is supposed to be a KSH clone.
        What is the equivalent of 'r' or ! in bash ?

        Thanks.

                                Cheers,

                                Dan Ts'o
                                The Rockefeller University
                                Box 138
                                1230 York Avenue
                                New York, NY  10021

                                212-327-7671
                                212-327-7671 FAX

 
 
 

DOSKEY? (or anything similar)???

Post by Andrew Giert » Fri, 29 Aug 1997 04:00:00


 Daniel> What is the equivalent of 'r' or ! in bash ?

alias r='fc -e -'

That's how it's defined in ksh too - it just happens to be a default
alias.

--
Andrew.

 
 
 

DOSKEY? (or anything similar)???

Post by Andrew Reil » Fri, 29 Aug 1997 04:00:00





>>I'm going nuts having to retype the command again and again and again. Surely
>>there must be a way to let the 'up-arrow' select from the history list - and
>>give me the chance to edit the line before pressing enter again.

>   Install tcsh and use this as your default shell. This will give you
>  edit capabilities...

Actually, if all you want is command editing, then the
supplied "Bourne" shell has enough ksh-isms to understand
set -o emacs

(Maybe it does vi mode too, but I don't know.)

If only it did file name completion...

(maybe it does?  how?)

--

 
 
 

DOSKEY? (or anything similar)???

Post by Peter Mutsaer » Fri, 29 Aug 1997 04:00:00



    >> Something that I have been wondering about (but too lazy to
    >> investigate): The real KSH has an 'r' command to repeat the last command, or
    >> the nth previous command, much like ! in csh. You can also say 'r ls' to
    >> repeat the last 'ls' command, etc.  But it seems that bash doesn't
    >> even though it is supposed to be a KSH clone.

    BC> Bash is *not* a KSH clone.  It guarantees to support Bourne,
    BC> not Korn shell, constructs, as well as providing bits and
    BC> pieces from a lot of different shells.  Thus, it has *some*
    BC> things from the Korn shell, but not all.  It also supports
    BC> some C-shell stuff, including the "!" semantics.  It's a bit
    BC> of a mish-mash, really.

Indeed,

if you want better ksh capability, and also the best interactive
features, you should use zsh. (It also has the r command).
--
 /\_/\
( o.o ) Peter Mutsaers  |  Abcoude (Utrecht), |  Trust me, I know

 
 
 

DOSKEY? (or anything similar)???

Post by H. Ecke » Fri, 29 Aug 1997 04:00:00



Quote:> Use bash. Or tcsh. They have history list support. You can even search
> through the history (CTRL-R with bash).

Definitely a key to remember (at work I've got an IRIX account set up
with bash and I always attempt to use ESC-p which is the same thing in
tcsh).

Greetings,
                                Ripley
--
Ach komm, ich denke schon, da? die Raver sehr tolerant sind. Gerade bei dieser
Love Parade. Du mu?t dir nur mal ansehen, wer da sein wird: Westbam, Marusha,
Blmchen, ein Wagen vom Marienhof ... Also, das wrde meine Toleranzgrenze weit

 
 
 

DOSKEY? (or anything similar)???

Post by geoffrey alexand » Sat, 06 Sep 1997 04:00:00






>>>I'm going nuts having to retype the command again and again and again. Surely
>>>there must be a way to let the 'up-arrow' select from the history list - and
>>>give me the chance to edit the line before pressing enter again.

>>   Install tcsh and use this as your default shell. This will give you
>>  edit capabilities...
>Actually, if all you want is command editing, then the
>supplied "Bourne" shell has enough ksh-isms to understand
>set -o emacs
>(Maybe it does vi mode too, but I don't know.)
>If only it did file name completion...
>(maybe it does?  how?)
>--


The zsh does -- in fact, it seems to have all the best of tcsh, ksh, and sh
(it's ksh based). In fact, it has >programmable< complete, etc. -- extreme
power shell.

--
Geoffrey Alexander                    


for pgp public key, website addresses, and other fun things.

 
 
 

1. DOSKEY? (or anything similar)???


Nothing against zsh, but tcsh has all of above, too.
I think this is even true for bash, although I don't know offhand
if it has something like the "complete" internal from tcsh.  At one
time I had to decide whether I'd change to bash but it lacked the
"cwdcmd" feature so I kept with tcsh.  On one machine at work I do
have bash though as at that time (Irix 4.0.5 IIRC) I failed to compile
tcsh and I could get a pre-compiled bash.  Since then we upgraded to
Irix 5.2 but I never bothered to change my shell since I don't use
that machine a lot.

That's true.  And if it wasn't for some luxury features I would've
probably changed by now.  

If it's csh then by all means tcsh.  The standard csh is just too
cumbersome for an advanced user.

Greetings,
                                Ripley
--
Ach komm, ich denke schon, da? die Raver sehr tolerant sind. Gerade bei dieser
Love Parade. Du mu?t dir nur mal ansehen, wer da sein wird: Westbam, Marusha,
Blmchen, ein Wagen vom Marienhof ... Also, das wrde meine Toleranzgrenze weit

2. Response Header

3. Is there a Unix program similar to DOSKEY?

4. debian and X on wallstreet

5. KSH "esc=", anything similar?

6. gnome and Xscreensaver issue

7. Anything similar to hc_svc

8. Finding Size of Files

9. anything similar to powerpoint

10. Anything similar to .bat files in LinuxPPC

11. Anything similar to NETSTAT available?

12. Anything similar to Solaris snoop for AIX

13. Dbase, Rbase...Anything similar?