Florian Gamböck <[email protected]> wrote: > I downloaded and compiled your archive. > > $ echo $0 > ./sh/OBJ/x86_64-linux-cc/sh > $ $0 --version > sh (Schily Bourne Shell) version 2015/06/27 a+ (x86_64-unknown-linux-gnu) > > Copyright (C) 1984-1989 AT&T > Copyright (C) 1989-2009 Sun Microsystems > Copyright (C) 1982-2015 Joerg Schilling > > > Now I cannot reproduce the no-echo issue, at least with my ssh method. > But as I said, I also couldn't do it with `bash --posix`. So this seems > somehow related. The non-POSIX Bash seems to trigger something and > doesn't reset it under certain circumstances.
It seems that there is something related to my other mail: bash --posix bash-4.1$ ls MKLINKS abbrev.h bosh.mk1 defs.h fault.c hashserv.c mac.h name.c pwd.c sh_policy.h sym.h version.h Makefile alias.c cmd.c dup.h func.c io.c macro.c name.h service.c signames.c test.c word.c Makefile.man args.c ctype.c echo.c gmatch.c jobs.c main.c pfsh.1 sh.1 stak.c timeout.h xec.c OBJ bltin.c ctype.h error.c hash.c jsh.1 mode.h pfsh.mk1 sh.tour.ps stak.h ulimit.c abbrev.c bosh.1 defs.c expand.c hash.h jsh.mk1 msg.c print.c sh_policy.c string.c umask.c bash-4.1$ stty -echo bash-4.1$ MKLINKS abbrev.h bosh.mk1 defs.h fault.c hashserv.c mac.h name.c pwd.c sh_policy.h sym.h version.h Makefile alias.c cmd.c dup.h func.c io.c macro.c name.h service.c signames.c test.c word.c Makefile.man args.c ctype.c echo.c gmatch.c jobs.c main.c pfsh.1 sh.1 stak.c timeout.h xec.c OBJ bltin.c ctype.h error.c hash.c jsh.1 mode.h pfsh.mk1 sh.tour.ps stak.h ulimit.c abbrev.c bosh.1 defs.c expand.c hash.h jsh.mk1 msg.c print.c sh_policy.c string.c umask.c bash-4.1$ exit Note that this is on Linux and I typed "ls" after "stty -echo" Interesting: the final "exit" is printed...but this is done _after_ I typed the new-line. It seems that there is something really strange inside the command line editing code in bash. Note that The Bourne Shell does neither implement "emacs" nor "vi" mode but "ved" mode. Ved is an editor that is included as a reimplementation in the schily tools tarball. An editor with this interface and the same name first appeared on UNOS 1980. I don't know when the first ved version was written, it may be older than emacs. So if you are using the Bourne Shell, you may observe minor differences to bash. Note that an important difference is that my history editor remembers the cursor position in each command line. This makes it more convenient to change a single parameter in an existing command line. Jörg -- EMail:[email protected] (home) Jörg Schilling D-13353 Berlin [email protected] (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.org/private/ http://sourceforge.net/projects/schilytools/files/'

