[gnu.bash.bug] Bash 1.01 - !^ fails, yank kills shell.

gnb@melba.bby.oz.au (Gregory Bond) (08/15/89)

Hi.  I hope this is the right place for this.  I'm not on this
maillist, nor do I get the gnu.* group associated with bash, if one
exists, so I would appreciate mailed followups.

The following typescript shows that the !^ history stuff doesn't work
like !$ in bash or !^ and !$ in csh (as I assume the bash history is
supposed to emulate).  This is on a Sun 3/60 running SunOS 3.5 export,
compiled with gcc v1.35.

  Script started on Tue Aug 15 13:22:03 1989
  % echo hello there
  hello there
  % echo !$
  echo there
  there
  % echo !-2:^
  echo hello
  hello
  % ./bash -version
  GNU ./bash, version 1.01
  $ echo hello there
  hello there
  $ echo !$
  echo there
  there
  $ echo !-2:^
  echo hello^
  hello^
  $ echo hello there
  hello there
  $ echo !^
  ^: Event not found.
  $ 
  % ^D
  script done on Tue Aug 15 13:22:58 1989

The second problem is with ^Y for yank. The sequence ^P (to get any
previous command), M-Rubout (to delete a word) ^Y (to yank) causes the
shell to go to sleep, echoing all characters to the screen, including
^C, Esc, etc, (but still interprets ^J and Rubout properly).  You have
to kill the shell from another terminal.

You might also like to mention that putting "stty pass8" in the
.bashrc file for SunOS 3.5 will allow the use of the Alt/Meta keys
within bash when running under suntools.

Suggested improvement dept: 

1- fignore - ignore file completions that have given suffixes, so saying
"set fignore=(.o)" will mean that <TAB> will always give the .c file
(which is what is wanted 99% of the time).

2- C-u in command editing mode should return to the blank current
command (and thus remove the "*" modified marker).

In all, I LIKE this shell.  It will become my standard shell when I
can trust its reliability.

Greg.