[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Correct error message when using -n and -o ignoreeof in interact
From: |
Milana |
Subject: |
[PATCH] Correct error message when using -n and -o ignoreeof in interactive mode |
Date: |
Sun, 18 Aug 2024 02:09:10 +0200 |
Hi Bash Maintainers,
I recently encountered an issue while experimenting with different shell
options in Bash. When launching Bash with both the `-n` (noexec) and `-o
ignoreeof` flags in interactive mode (with no pipes or redirection),
pressing `^D` (EOF) results in the message: "Use 'exit' to leave the
shell."
Since no commands can be executed in this state due to the `noexec`
option, this message might be misleading.
To address this, I've created a small patch that adjusts the error
message depending on whether Bash is in command execution mode or not.
This patch does not include translations of the new error message for
other supported languages, as I wanted to avoid potential inaccuracies
from machine translations.
Please find the patch attached. I am happy to make any further
adjustments based on your feedback.
Thank you for your time and consideration.
Best regards,
Milana
fix-noexec-ignoreeof-message.patch
Description: Text Data
- [PATCH] Correct error message when using -n and -o ignoreeof in interactive mode,
Milana <=