On 2024-04-08 05:58, Robert Elz wrote:
Date:        Mon, 8 Apr 2024 02:50:29 +0100
    From:        Kerin Millar <k...@plushkava.net>
Message-ID: <20240408025029.e7585f2f52fe510d2a686...@plushkava.net>

  | which is to read scripts in their entirety before trying to execute
  | the resulting program. To go about it that way is not typical of sh
  | implementations, for whatever reason.

Shells interpret their input in much the same way, regardless of
from where it comes.   Would you really want your login shell to
just collect commands that you type (possibly objecting to those
with syntax errors) but executing none of them (including "exit")
until you log out (send EOF) ?

kre
My answer to that would be: No! I would expect it to handle file execution a bit differently then terminal input. Anyway... I reported what I found concerning, you guys know best what's can and worth doing about it. I'm not involved in bash's development, the rest is up to you. I'm gonna put my code in {} and end with exit from now on to make it at least somewhat safer.

Tibor

Reply via email to