Summary: how to press up arrow key repeat last command

From: Cody Wang (cwang_at_berkshirecc.edu)
Date: 05/26/05

  • Next message: John Galt: "Summary: T64 4.0f, ES40, KZPCC-CE, and NHD3"
    Date: Thu, 26 May 2005 08:31:34 -0400
    To: tru64-unix-managers@ornl.gov
    
    

    >>> Cody Wang 05/26 8:12 AM >>>
    [repeat last command by press up arrow key in true64]

    If you use BourneAgain Shell (bash) or Z Shell (zsh), you'll have it
    out
    of the box
    ==================

    in ksh check shell first
    $ env | grep -i shell or
    # env | grep -i shell

    If you don't then use;

    # chsh -s `which ksh` <username>

    export TERM=vt320

    Check your .profile and the global /etc/profile to see if the upkeys
    are
    Disabled======================

    then put this in .profile "set -o emacs" "set -o gmacs"

    set -o emacs # Enable emacs style editing, like bash
                  # Cursor up for previous command
    set -o vi # Enable vi style command editing
                  # ESC and then "k" for previous command
    Not all shells offer you the up arrow capability. Bash (the default
    Linux
    shell), tcsh, and perhaps ksh off this feature. Take a look at
    /etc/shells
    to see which shells are offered on your system.
    -===============
    exec ksh -o emacs
    you would need to use the 'bash' shell for that. Default for tru64 is

    probably csh or sh.

    You can download bash from http://www.gnu.org/software/bash/bash.html

    or

    it might come on some TRU64 open source CDs.

    install tcsh from your open source software collection CD. Then type
    /bin/tcsh or /usr/local/bin/tcsh and all works.

    ==================================
    get bash: compile, install and add to /etc/shells

    The final conculusion is that wyse50 term emulation cannot work that it
    has to be vt320/420. So, that stick with wyse50 or continue search for
    answer. We can use alias switch term but very trouble.

    Best Regards,
    Cody Wang

    Database Programmer Analyst
    Berkshire Community College
    1350 West Street
    Pittsfield, MA 01201
    413-499-4660 x497

    Best Regards,
    Cody Wang

    Database Programmer Analyst
    Berkshire Community College
    1350 West Street
    Pittsfield, MA 01201
    413-499-4660 x497

    >>> "John Welsh" <johnwelsh@optusnet.com.au> 05/25 7:35 PM >>>
    Hi Cody,
            I am interested in seeing what the responses
            were from your command recall question.

            Could you please send a summary to the list.

    Thank you and Best Regards,

    John Welsh.
    ===========
    Sydney, Australia.

    -----Original Message-----
    From: tru64-unix-managers-owner@ornl.gov
    [mailto:tru64-unix-managers-owner@ornl.gov]On Behalf Of Cody Wang
    Sent: Wednesday, 25 May 2005 10:07
    To: tru64-unix-managers@ornl.gov
    Subject: Thank you! RE: how to press up arrow key repeat last command

    Thank you very much for everyone's answer. I got about 30 emals about
    how to press up arrow key repeat last command that apparently this is
    very common question. I need to keep learning. : )

    Best Regards,
    Cody Wang

    Database Programmer Analyst
    Berkshire Community College
    1350 West Street
    Pittsfield, MA 01201
    413-499-4660 x497

    Best Regards,
    Cody Wang

    Database Programmer Analyst
    Berkshire Community College
    1350 West Street
    Pittsfield, MA 01201
    413-499-4660 x497


  • Next message: John Galt: "Summary: T64 4.0f, ES40, KZPCC-CE, and NHD3"

    Relevant Pages

    • Bash-4.0 available for FTP
      ... Unlike previous bash distributions, this tar file includes the formatted ... The shell has been changed to be more ... rigorous about parsing commands inside command substitutions, ... Changes have been made to the Readline library being released at ...
      (gnu.announce)
    • [gnu.bash.bug] BASH Frequently-Asked Questions (FAQ version 3.30)
      ... This is the Bash FAQ, version 3.30, for Bash version 3.0. ... Bash, the GNU Bourne-Again Shell. ... C3) Which new features in ksh-93 are not in bash, ... D1) Why does bash run a different version of `command' than ...
      (comp.unix.questions)
    • [gnu.bash.bug] BASH Frequently-Asked Questions (FAQ version 3.25)
      ... This is the Bash FAQ, version 3.25, for Bash version 2.05b. ... Bash, the GNU Bourne-Again Shell. ... C3) Which new features in ksh-93 are not in bash, ... D1) Why does bash run a different version of `command' than ...
      (comp.unix.questions)
    • [gnu.bash.bug] BASH Frequently-Asked Questions (FAQ version 3.26)
      ... This is the Bash FAQ, version 3.26, for Bash version 2.05b. ... Bash, the GNU Bourne-Again Shell. ... C3) Which new features in ksh-93 are not in bash, ... D1) Why does bash run a different version of `command' than ...
      (comp.unix.questions)
    • [gnu.bash.bug] BASH Frequently-Asked Questions (FAQ version 3.25)
      ... This is the Bash FAQ, version 3.25, for Bash version 2.05b. ... Bash, the GNU Bourne-Again Shell. ... C3) Which new features in ksh-93 are not in bash, ... D1) Why does bash run a different version of `command' than ...
      (comp.unix.questions)