bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Correct error message when using -n and -o ignoreeof in inte


From: Robert Elz
Subject: Re: [PATCH] Correct error message when using -n and -o ignoreeof in interactive mode
Date: Thu, 22 Aug 2024 02:01:56 +0700

    Date:        Wed, 21 Aug 2024 12:09:06 -0400
    From:        Grisha Levit <grishalevit@gmail.com>
    Message-ID:  
<CAMu=BrrNWE1f7mbqy5qo__eRsnSoA9AXbno_zZW3Y_weCgXfSw@mail.gmail.com>

  | I've found using
  |
  |     bash --norc -in <<< INPUT
  |
  | invaluable for testing input handling so I hope that remains an option.

That kind of thing (not precisely that) is why the NetBSD shell took the 
approach
it does, of simply disabling -n for each new command, rather than ignoring it
completely for interactive shells.

One way to handle that the way that bash does things, would be to only disable 
the
'n' option at startup if the shell becomes interactive the "normal" way, and not
when that is forced by use of -i.

kre



reply via email to

[Prev in Thread] Current Thread [Next in Thread]