On Thu, Aug 04, 2016 at 03:47:19AM +0300, Dmitry Bogatov wrote:
> Please, do following things:
> 
>  - set emacs (or anything that is interactive and does not link
>    readline) as login shell and tell, whether bug arises

ngetty + ed is working ok.
ngetty + francine is working wrong.

>  - since you said that good shell and bad shell differs in terminal
>    configuration, use `stty(1)' to configure bad shell as good one,
>    and via-verse.

Mmm. I cannot reproduce this. stty -a is giving the same output now. It doesn't 
change anything stty -isig or stty isig

>  - replace login1 with following shell script (extremely insecure,
>    do not forget to revert)
>       #!/bin/bash
>       /bin/bash
>    and test following cases:
>      + ngetty with such login1
>      + fgetty with such login1

I have tested

   `echo ñandú'

in both cases, with the following results:

  + ngetty with login1 with bash script
    prints:
     echo and (while typing)
     and

  + fgetty with login1 with bash script script
     (I can't see anything while typing)
     outputs:
      and

But, if I replace login1 with:
   #!/bin/sh
   /bin/sh

 + fgetty with login1 with sh script
   prints:
   (it won't print anything while typing 'echo ñandú')
   but the result is:
   ñandú

 + ngetty with login1 with sh script
   prints:
   # echo ñandú
   ñandú

And, if I replace login1 with:
   #!bin/sh
   /bin/tcsh

 + fgetty with tcsh script
   echo \303\261and\303\272
   ñandú
 
 + ngetty with tcsh script
   echo \303\261and\303\272
   ñandú

> 
> -- 
> Accept: text/plain, text/x-diff
> Accept-Language: eo,en,ru
> X-Web-Site: sinsekvu.github.io

Reply via email to