Re: [PATCH] Correct error message when using -n and -o ignoreeof in inte
From:
Ángel
Subject:
Re: [PATCH] Correct error message when using -n and -o ignoreeof in interactive mode
Date:
Mon, 19 Aug 2024 15:52:35 +0200
On 2024-08-18 at 11:21 +0700, Robert Elz wrote:
> Interactive shells with -n (noexec) set are pointless
The man page states:
> -n Read commands but do not execute them. This may be used
> to check a shell script for syntax errors. This is ig‐
> nored by interactive shells.
And indeed, doing a set -n on an interactive shell is ignored.
It is however possible to run an interactive noexec bash if it is set
on launch.